-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc_profile
50 lines (44 loc) · 1.48 KB
/
zshrc_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# General Aliases
alias ls='ls -la'
alias cds='cd ~/Sites'
alias cdc='cd ~/Code'
alias trash='rm -rf ~/.Trash/* '
alias atom='open -a Atom'
alias nova='open -a Nova'
alias bashatom='open -a Atom ~/.zshrc'
alias p3='python3'
alias reload='source ~/.zshrc'
alias clone='wget -mkEpnp -e robots=off --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3"'
## SSH
alias sshae='ssh [email protected]@aethelyon.com'
alias sshss='ssh -i stormnet [email protected]'
alias sshpd='ssh [email protected]'
# Git Aliases
alias g='git '
alias gi='git init '
alias gs='git status'
alias gss='git status -sb '
alias ga='git add '
alias gc='git commit -m '
alias gac='ga -A && gc '
alias gp='git push '
alias gpo='git push origin '
alias gpom='git push origin master'
alias gr='git rm -r '
alias gb='git checkout -b '
alias gc-='git checkout - '
alias gd='git diff '
# Historical Grep
function hist {
history | grep $1
}
# Shell Colors
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export PATH="/usr/local/opt/ruby/bin:$PATH"