File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ a p='pwd'
55a e=' exit'
66a 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
1010a so=' set +o history'
1111
@@ -20,10 +20,11 @@ a l='ls -ltrhG'
2020a la=' l -A'
2121a vi=' gvim'
2222a grep=' grep --color=auto'
23- a egrep=' egrep --color=auto'
2423
24+ # open and source aliases
2525a oa=' vi ~/.bash_aliases'
2626a sa=' source ~/.bash_aliases'
27+
2728# sort file/directory sizes in current directory in human readable format
2829a s=' du -sh -- * | sort -h'
2930
@@ -46,8 +47,9 @@ ch() { whatis $1; man $1 | sed -n "/^\s*$2/,/^$/p" ; }
4647ap () { 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
You can’t perform that action at this time.
0 commit comments