-
-
Save andreadellacorte/3aa914c411ca22ab1fa2ce6cc6fb8d76 to your computer and use it in GitHub Desktop.
zsh aliases
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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\ Chrome.app" | |
alias wp='cd ~/Documents/Github' | |
elif [[ $OSTYPE == linux-gnu* ]]; then | |
alias wp='cd /mnt/c/Users/Andrea/Documents/Github/' | |
fi | |
alias my='sudo chown -R `id -u`' | |
# SHORTCUTS | |
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' ../.. | |
# EXTRACTING Stuff | |
alias tgz='tar -cvvzf' | |
alias tbz2='tar -cvvjf' | |
alias utgz='tar -xvvzf' | |
alias utbz2='tar -xvvjf' | |
alias mktar='tar -cvvf' | |
alias untar='tar -xvvf' | |
# PROCESS Stuff | |
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 | |
INPUT_FILE=$1 | |
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