Skip to content

Instantly share code, notes, and snippets.

@pymen
Created December 15, 2013 16:07
Show Gist options
  • Save pymen/7974774 to your computer and use it in GitHub Desktop.
Save pymen/7974774 to your computer and use it in GitHub Desktop.
my zsh aliases 12.2013
########################### ALIASES
alias _='sudo'
alias ll="ls -al"
alias sz="source ~/.zshrc"
#Opens current directory in a file explorer
alias ex='doublecmd .'
#Opens current directory in a file explorer with super user privileges
alias suex='sudo doublecmd .'
#Opens current directory in Ubuntu's Disk Usage Analyzer GUI with super user privileges in the background
alias analyze='gksudo baobab . &'
#Opens a GUI text editor in the background. Can obviously be replaced with your favorite editor
alias text='gedit &'
#Same as above with super user privileges
alias sutext='gksudo subl'
#Opens a file with whatever program would open by double clicking on it in a GUI file explorer
#Usage: try someDocument.doc
alias open='gnome-open'
#lists contents of current directory with file permisions
alias ll='ls -l -sort'
#list all directories in current directories
alias dd='ls -l | grep ^d'
alias -g G="| grep"
alias -g L="| less"
alias inst="sudo apt-fast install --yes $1"
alias upg="sudo aptitude upgrade $1"
alias upd="sudo aptitude update"
alias show="sudo aptitude show"
alias search="sudo aptitude search"
alias un="sudo aptitude remove"
alias unf="sudo aptitude purge"
alias add="sudo add-apt-repository $1"
addu(){
sudo add-apt-repository "$1"
sudo aptitude update
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment