fix non-ending function
This commit is contained in:
parent
f416dc5ea7
commit
453d348400
|
|
@ -8,6 +8,13 @@ alias ll='ls -la'
|
||||||
alias lla='ls -htlr -A'
|
alias lla='ls -htlr -A'
|
||||||
alias l='ls -l'
|
alias l='ls -l'
|
||||||
|
|
||||||
|
# cdl=move to directory and instantly list its contents
|
||||||
|
# everyone needs this ;-)
|
||||||
|
cdl(){
|
||||||
|
cd $@
|
||||||
|
ls -l
|
||||||
|
}
|
||||||
|
|
||||||
# change directory
|
# change directory
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias ...='cd ../..'
|
alias ...='cd ../..'
|
||||||
|
|
@ -32,16 +39,6 @@ cd() {
|
||||||
# Otherwise, use normal cd behavior
|
# Otherwise, use normal cd behavior
|
||||||
builtin cd "$target"
|
builtin cd "$target"
|
||||||
fi
|
fi
|
||||||
# create an excuse
|
|
||||||
excuse(){
|
|
||||||
curl -s https://bofh-api.bombeck.io/v1/excuses/random/ | jq -r '.[0].quote'
|
|
||||||
}
|
|
||||||
|
|
||||||
# cdl=move to directory and instantly list its contents
|
|
||||||
# everyone needs this ;-)
|
|
||||||
cdl(){
|
|
||||||
cd $@
|
|
||||||
ls -l
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# directly cd into the latest modified directory
|
# directly cd into the latest modified directory
|
||||||
|
|
@ -49,6 +46,12 @@ cdla(){
|
||||||
cd "$(\ls -1dt ./*/ | head -n 1)"
|
cd "$(\ls -1dt ./*/ | head -n 1)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# create an excuse
|
||||||
|
excuse(){
|
||||||
|
curl -s https://bofh-api.bombeck.io/v1/excuses/random/ | jq -r '.[0].quote'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# making git-life easier
|
# making git-life easier
|
||||||
gitc(){
|
gitc(){
|
||||||
git commit -a -m "$1"
|
git commit -a -m "$1"
|
||||||
|
|
@ -102,3 +105,4 @@ alias telnet='echo use the curl method: curl telnet:\/\/<ip>:<port>'
|
||||||
|
|
||||||
# hopefully, there's ack-grep installed on the system...
|
# hopefully, there's ack-grep installed on the system...
|
||||||
alias ag='ack'
|
alias ag='ack'
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user