diff --git a/.bash_aliases b/.bash_aliases index 2308b1a..7a183f9 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -8,6 +8,13 @@ alias ll='ls -la' alias lla='ls -htlr -A' alias l='ls -l' +# cdl=move to directory and instantly list its contents +# everyone needs this ;-) +cdl(){ + cd $@ + ls -l +} + # change directory alias ..='cd ..' alias ...='cd ../..' @@ -32,16 +39,6 @@ cd() { # Otherwise, use normal cd behavior builtin cd "$target" 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 @@ -49,6 +46,12 @@ cdla(){ 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 gitc(){ git commit -a -m "$1" @@ -102,3 +105,4 @@ alias telnet='echo use the curl method: curl telnet:\/\/:' # hopefully, there's ack-grep installed on the system... alias ag='ack' +