## get rid of command not found ##
alias cd..='cd ..'
## a quick way to get out of current directory ##
alias ..='cd ..'
alias ...='cd ../../../'
alias ....='cd ../../../../'
alias .....='cd ../../../../'
alias .4='cd ../../../../'
alias .5='cd ../../../../..'
# some more ls aliases
alias ll='ls -alF --color=auto'
alias la='ls -A --color=auto'
alias l='ls -CF --color=auto'
alias l.='ls -d .* --color=auto'
# update on one command
alias update='sudo apt-get update && sudo apt-get upgrade'
alias down='cd /home/mahmoud/Downloads'
alias www='cd /var/www/html'
alias apti='sudo apt-get install'
alias c='clear'
alias pa='php artisan'
alias gc='git clone'
alias nrd='npm run dev'
# alert i use it for long running commands ( apt-get upgrade && alert or sleep 10; alert)
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
Created
January 23, 2017 19:52
-
-
Save m5lil/551a90894f82bdda4e3e93432f9b48fe to your computer and use it in GitHub Desktop.
Some of my aliases for terminial
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment