Skip to content

Instantly share code, notes, and snippets.

@Scoder12
Created August 4, 2020 01:05
Show Gist options
  • Save Scoder12/088145da2f4828948cd11d1364130001 to your computer and use it in GitHub Desktop.
Save Scoder12/088145da2f4828948cd11d1364130001 to your computer and use it in GitHub Desktop.
My shell aliases file
alias "cd.."="cd .."
alias lsa="ls -a"
# For when ubuntu doesn't want to let me use my headphones
alias afr="sudo alsa force-reload"
# taken from the ubuntu default .bashrc
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$//'\'')"'
alias notify="alert"
alias gc="git commit -am" # Usage: gc "My commit message"
alias gs="git status"
alias gp="git push"
alias copy="xclip -selection clipboard" # Usage: somecmd | copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment