-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcreate-aliases.sh
More file actions
11 lines (8 loc) · 817 Bytes
/
create-aliases.sh
File metadata and controls
11 lines (8 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# Create an alias that overrides the ls command to use human readable sizes and to group directories first
grep -q -F 'alias ls=' ~/.bash_aliases || echo 'alias ls="ls --color=auto --file-type --human-readable --group-directories-first"' >> ~/.bash_aliases
# Create an alias that overrides the tree command to show two levels by default and show directories first
grep -q -F 'alias tree=' ~/.bash_aliases || echo 'alias tree="tree --dirsfirst -L 2"' >> ~/.bash_aliases
# create an alias that will opnen the specified directory in windows version of VS Code
# NOTE: This is probably not needed now VS Code should with WSL should do this out of the box
# grep -q -F 'alias code=' ~/.bash_aliases || echo 'alias code="cmd.exe /c C:/Program\ Files/Microsoft\ VS\ Code/bin/code.cmd $@"' >> ~/.bash_aliases