Skip to content

Commit d9f0af9

Browse files
updated aliases
1 parent ffea759 commit d9f0af9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.bash_aliases

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ a p='pwd'
55
a e='exit'
66
a q='exit'
77

8-
a h='history | tail -20'
8+
a h='history | tail -n20'
99
# turn off history, use 'set -o history' to turn it on again
1010
a so='set +o history'
1111

@@ -20,10 +20,11 @@ a l='ls -ltrhG'
2020
a la='l -A'
2121
a vi='gvim'
2222
a grep='grep --color=auto'
23-
a egrep='egrep --color=auto'
2423

24+
# open and source aliases
2525
a oa='vi ~/.bash_aliases'
2626
a sa='source ~/.bash_aliases'
27+
2728
# sort file/directory sizes in current directory in human readable format
2829
a s='du -sh -- * | sort -h'
2930

@@ -46,8 +47,9 @@ ch() { whatis $1; man $1 | sed -n "/^\s*$2/,/^$/p" ; }
4647
ap() { for f in "$@"; do echo "$PWD/$f"; done; }
4748

4849
# simple case-insensitive file search based on name
50+
# usage: fs name
4951
# remove '-type f' if you want to match directories as well
50-
fs() { find -type f -iname '*'"$@"'*' ; }
52+
fs() { find -type f -iname '*'"$1"'*' ; }
5153

5254
# open files with default application, don't print output/error messages
5355
# useful for opening docs, pdfs, images, etc from command line

0 commit comments

Comments
 (0)