Skip to content

Instantly share code, notes, and snippets.

@JonathanBeech
Created August 20, 2012 11:12
Show Gist options
  • Save JonathanBeech/3403282 to your computer and use it in GitHub Desktop.
Save JonathanBeech/3403282 to your computer and use it in GitHub Desktop.
Terminal: list of useful zsh alias's and functions
alias doc='cd ~/Documents'
alias desk='cd ~/Desktop'
alias ren='mv'
alias up='cd ..'
alias ..='cd ..'
alias ...='cd ../..'
alias ls='ls -F'
alias l='ls'
alias la='ls -AF'
alias a='la'
alias ll='ls -AFhl'
# Reload this file in the shell, useful after making changes
alias reload='source ~/.bash_profile'
function proj() { cp -R /Path/To/website_template `pwd`; mv website_template $1; }
function mysitetransfer() { scp $1 YOUR_USERNAME@YOUR_URL:$2; }
function superdl() { wget --wait=10 --limit-rate=500K -r -p -U Mozilla http://$1; }
# Make dir and cd into it with 'take' or just 'tk'
function take() { mkdir -p $1; cd $1; }
alias tk='take'
alias editconfig='nano ~/.bash_profile'
function gitgo() { git push -u $1 master; }
alias inst='sudo brew install'
# Toggle hidden files in Finder
alias showhidden='defaults write com.apple.finder AppleShowAllFiles TRUE; killall Finder'
alias hidehidden='defaults write com.apple.finder AppleShowAllFiles FALSE; killall Finder'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment