Last active
February 13, 2018 20:56
-
-
Save chancesmith/5183af99f7fdbeadfca394ea3cdd4d11 to your computer and use it in GitHub Desktop.
ZSH profile
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
plugins=(git sublime cloudapp node npm osx extract z) | |
# User configuration | |
# Remap alt-left and alt-right to forward/backward word skips. | |
# via @waltz, https://gist.github.com/waltz/8658549 | |
bindkey "^[^[[D" backward-word | |
bindkey "^[^[[C" forward-word | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
# export SSH_KEY_PATH="~/.ssh/rsa_id" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias work='cd ~/work-in-progress/' | |
alias home='cd ~' | |
## get rid of command not found ## | |
alias cd..='cd ..' | |
## a quick way to get out of current directory ## | |
alias ..='cd ..' | |
alias editprofile= 'subl ~/.zshrc' | |
alias refresh-profiles= 'source ~/.zshrc' | |
alias speed='wget -O /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip' | |
alias speedtest='/usr/bin/open -a "/Applications/Google Chrome.app" "http://www.speedtest.net/"' | |
#alias handbrake='/Volumes/HandBrakeCLI-1.0.1/HandBrakeCLI --output ~/Desktop/vids --input' | |
alias cleanshots='automator ~/Dropbox/delete-IFTTT-screensaver-files.workflow' | |
alias fixcam='sudo killall VDCAssistant' | |
## sudo me | |
alias please='sudo $(history -p !!)' | |
alias pls='sudo $(history -p !!)' | |
## dns checking | |
dns() { | |
nslookup "$1" | |
dig -t ANY "$1" | |
} | |
## git | |
alias gs='git status' | |
alias ga='git add .' | |
alias gaa='git add --all' | |
alias gc='git commit -m' | |
alias gca='git commit --amend -m' | |
alias gl='git pull' | |
alias gp='git push' | |
alias gco='git checkout' | |
alias gpom="git pull origin master" | |
alias gd='git diff | mate' | |
alias gb='git branch' | |
alias gba='git branch -a' | |
alias del='git branch -d' | |
alias gr='git remote' | |
# just in case | |
alias got='git ' | |
alias get='git ' | |
## save passphrase for ssh to prevent entering passpharse after every push and pull | |
## https://stackoverflow.com/questions/10032461/git-keeps-asking-me-for-my-ssh-key-passphrase | |
alias savessh='eval $(ssh-agent) && ssh-add -K' | |
alias newmac="openssl rand -hex 6 | sed 's/\(..\)/\1:/g; s/.$//' | xargs sudo ifconfig en0 ether" | |
alias sitespeed="docker run --shm-size=1g --rm -v "$(pwd)":/sitespeed.io sitespeedio/sitespeed.io:6.2.3 " | |
dns() { | |
nslookup "$1" | |
dig -t ANY "$1" | |
} | |
autoload bashcompinit | |
bashcompinit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment