Skip to content

Instantly share code, notes, and snippets.

Forked from inhji/.zshrc
Last active May 27, 2020 23:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save andreadellacorte/3aa914c411ca22ab1fa2ce6cc6fb8d76 to your computer and use it in GitHub Desktop.
zsh aliases
alias help='cat ~/.oh-my-zsh/custom/aliases.zsh'
alias aliases='vim ~/.oh-my-zsh/custom/aliases.zsh'
if [[ $OSTYPE == darwin* ]]; then
alias browse="open -a /Applications/Google\"
alias wp='cd ~/Documents/Github'
elif [[ $OSTYPE == linux-gnu* ]]; then
alias wp='cd /mnt/c/Users/Andrea/Documents/Github/'
alias my='sudo chown -R `id -u`'
alias c='clear'
alias h='history'
alias reload='exec zsh -l'
# APT GET Stuff
alias u='sudo apt-get update && sudo apt-get upgrade -y'
alias up='sudo apt-get update'
alias ug='sudo apt-get upgrade -y'
alias i='sudo apt-get install -y'
alias rem='sudo apt-get remove'
alias purge='sudo apt-get purge'
alias ar='sudo apt-get autoremove -y'
alias aar='sudo add-apt-repository -y'
alias dug='sudo apt-get dist-upgrade -y' ../..
alias tgz='tar -cvvzf'
alias tbz2='tar -cvvjf'
alias utgz='tar -xvvzf'
alias utbz2='tar -xvvjf'
alias mktar='tar -cvvf'
alias untar='tar -xvvf'
alias pid='ps -A -e -l | grep'
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
# MEDIA Stuff
alias youtube-dl='youtube-dl -t --audio-format mp3 --extract-audio --audio-quality 192'
scanconvert() { # makes PDFs look scanned
convert -density 150 ${INPUT_FILE} -colorspace 'gray' +noise Gaussian -rotate 0.5 -depth 2 scanned_${INPUT_FILE}
# LS Stuff
alias ls='ls -F --color=always --group-directories-first'
alias ll='ls -la'
alias ld='ls -F | grep "/$"'
alias la='ls -CA'
alias l='ls'
# GIT Stuff
alias gs='git status'
alias gc='git commit -m'
alias gca='git commit -am'
alias ga='git add'
alias gaa='git add .'
alias -s git="git clone"
# CD Stuff
alias .='cd . && ld'
alias ..='cd .. && ld'
alias ...='cd ... && ld'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment