Skip to content

Instantly share code, notes, and snippets.

@ByScripts
Last active December 24, 2015 11:39
Show Gist options
  • Save ByScripts/6792315 to your computer and use it in GitHub Desktop.
Save ByScripts/6792315 to your computer and use it in GitHub Desktop.
alias c=clear
alias ..='cd ..'
alias i='sudo apt-get install'
alias u='sudo apt-get update'
alias r='sudo apt-get remove'
alias ug='sudo apt-get upgrade'
alias dug='sudo apt-get upgrade'
alias ar='sudo apt-get autoremove'
alias updatedb='sudo updatedb'
alias psg='ps -ef | grep -i'
alias xclip='xclip -selection c'
alias a2reload='sudo service apache2 reload'
alias a2restart='sudo service apache2 restart'
_apt_install_complete() {
mapfile -t COMPREPLY < <(apt-cache --no-generate pkgnames "$2");
}
complete -F _apt_install_complete i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment