Created
November 15, 2018 15:35
-
-
Save therealfakemoot/c4e0008a93196ac557915ff7f3afb6ad to your computer and use it in GitHub Desktop.
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
# ~/.zshrc | |
### Settings ##################################### | |
ZSH=/home/$(whoami)/.oh-my-zsh | |
if [ ! -d $ZSH ]; then | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
fi | |
ZSH_THEME="risto" | |
COMPLETION_WAITING_DOTS="true" | |
plugins=(git go man) | |
source $ZSH/oh-my-zsh.sh | |
if [ -n $TMUX ]; then | |
unset zle_bracketed_paste | |
fi | |
### Defaults ##################################### | |
EDITOR="vim" | |
LANG="en_US.UTF-8" | |
SHELL="$(which zsh)" | |
TERM="xterm-256color" | |
### Programming Languages ######################## | |
export GOPATH="$HOME/.local/go" | |
export GOROOT="$HOME/go" | |
export GOBIN="$GOROOT/bin" | |
PROGPATH="$GOPATH/bin" | |
### Paths ######################################## | |
GLOBALPATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin" | |
LOCALPATH="$HOME/.local/bin:$HOME/.bin:$HOME/bin" | |
PATH="$GLOBALPATH:$LOCALPATH:$PROGPATH:$GOBIN" | |
### Exports ###################################### | |
export PATH GOPATH EDITOR LANG TERM ZSH | |
### Alias ######################################## | |
## cp | |
alias cp="cp -ip" | |
alias cr="cp -ir" | |
## curl | |
alias hurl="curl -f#LO" | |
## df | |
alias df="df -h" | |
alias di="df -hi" | |
## dig | |
alias dit="dig +noall +nocmd +answer +multiline" | |
## du | |
alias du="du -hs ./*" | |
## free | |
alias free="free -h" | |
## ls | |
ls="-hF --group-directories-first --color=auto" | |
lss="-hSF --group-directories-first --color=auto" | |
alias l="ls -C $ls" | |
alias la="ls -aC $ls" | |
alias ll="ls -al $ls" | |
alias ls="ls -C $ls" | |
## mkdir | |
alias mkdir="mkdir -vp $@" | |
## more | |
alias more="less" | |
## mv | |
alias mv="mv -i" | |
## nano | |
alias nano="nano -EOSWcimx" | |
## ps | |
alias pss="ps -af | head -1; ps -af | grep -v grep" | |
alias psw="watch 'ps -af | sort -rk4'" | |
## rm | |
alias rf="rm -rf" | |
alias rm="rm -i" | |
alias rr="rm -ir" | |
## screen | |
alias screen="screen" | |
## scrot | |
alias ss="scrot -s ~/Pictures/'Screenshot-%Y%m%d'.png" | |
## tar | |
alias mktar="tar -zcvf archive_`date +%Y%m%d`-`date +%H%M%S`.tar.gz" | |
alias untar="tar -vxf" | |
### Extras ####################################### | |
mkcd() { | |
mkdir -vp $1 | |
cd $1 | |
} | |
weather() { | |
curl http://wttr.in/$1 | |
} | |
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment