Last active
August 8, 2017 14:06
-
-
Save viniciusCamargo/19cf777259f77c8b958d26f9f054ba10 to your computer and use it in GitHub Desktop.
my .zshrc file
This file contains hidden or 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
# set nvm | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" | |
# a small helper to make a directory and enter into it | |
# https://unix.stackexchange.com/a/125386 | |
mkcdir () { | |
mkdir -p -- "$1" && cd -P -- "$1" | |
} | |
# creates a directory, enters into it and starts npm | |
qnpm () { | |
mkcdir "$1" && npm init -y | |
} | |
# set home directory on a new terminal | |
# https://stackoverflow.com/a/39255856/6776673 | |
if [[ $PWD == $HOME ]]; then | |
cd "/home/$USER/Documents/code" | |
fi | |
alias clip='xsel --clipboard --input' | |
# alias for git | |
alias gs='git status ' | |
alias ga='git add ' | |
alias gb='git branch ' | |
alias gc='git commit' | |
alias gd='git diff --color-words' | |
alias gt='git checkout ' | |
alias gk='gitk' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment