Last active
July 31, 2019 02:23
-
-
Save brianlechthaler/72a727887d4934152c73 to your computer and use it in GitHub Desktop.
My .zshrc
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
#export PATH=$HOME/anaconda3/bin:$PATH | |
#export PATH=$HOME/anaconda2/bin:$PATH | |
export BANNERMSG="Edit your .zshrc!" | |
export GREP_COLOR=always | |
export LANG=en_US.utf8 | |
#export EDITOR=/bin/nano | |
#export GOPATH=$HOME/go/ | |
#export GOCODE=$HOME/go/ | |
#export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/local/share/zsh-syntax-highlighting/highlighters | |
#export PATH="$PATH:$HOME/.rvm/bin" | |
#export PATH=$PATH:${GOPATH//://bin:}/bin | |
#export PATH=$PATH:$HOME/crap/scripts | |
#export PATH=$PATH:$HOME/git/bat/target/release | |
#export PATH=$PATH:$HOME/.cargo/bin | |
#eval $(thefuck --alias) | |
alias setuppy="python setup.py build && sudo python setup.py install" | |
alias pysetup=setuppy | |
alias ipnb="screen jupyter notebook" | |
alias gp="git pull" | |
#alias nano="vim" #HARDCORE MODE | |
#alias pullall=" ls -R --directory --color=never */.git | sed 's/\/.git//' | xargs -P10 -I{} git -C {} pull " | |
alias qn="$EDITOR /tmp/quicknote_$RANDOM" | |
alias dd="dd status=progress" | |
#alias doodle="sudo docker run -v $(pwd)/samples:/nd/samples -v $(pwd)/frames:/nd/frames -it alexjc/neural-doodle" | |
alias findproc="ps aux |head -n 1 && ps aux | grep -v "grep" | grep" | |
alias enhance='function ne() { docker run -v $(PWD)/`dirname $1`:/ne/input -it alexjc/neural-enhance input/`basename $1`; }; ne' | |
alias ixio="curl -F 'f:1=<-' ix.io" | |
alias tail="tail -f" | |
alias rm="rm -rf" | |
alias fucking="sudo" | |
alias apt="sudo apt" | |
ZDOTDIR="$HOME/.zsh" | |
HISTFILE="$ZDOTDIR/.history" | |
HISTSIZE=50000 | |
SAVEHIST=50000 | |
setopt extendedhistory # save timestamp and duration | |
setopt histignorealldups # ignore duplicates | |
setopt histignorespace # ignore lines which start with space | |
setopt incappendhistory # incremental append | |
setopt sharehistory # share history between zsh processes | |
function _autols(){print -P "%F{8}$(COLUMNS=$COLUMNS command ls -CF)%f"} | |
chpwd_functions+=(_autols) | |
fpath+=($ZDOTDIR/completion(N-/)) | |
autoload -Uz compinit && compinit -d "$ZDOTDIR/.zcompdump" | |
zstyle ':completion:*' completer _expand _complete _correct _approximate | |
zstyle ':completion:*' format '%F{8}# %d%f' # group title | |
zstyle ':completion:*' group-name '' # show all groups | |
zstyle ':completion:*' list-separator '' # default '--' | |
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' '+m:{A-Z}={a-z}' 'r:|[._-]=* r:|=* l:|=*' | |
zstyle ':completion:*' use-cache true | |
zstyle ':completion:*' verbose true | |
zstyle ':completion:*' menu select=2 | |
zstyle ':completion:*:functions' ignored-patterns '_*' | |
setopt listpacked # smaller completion list | |
setopt menucomplete # insert matches immediately | |
setopt extendedglob globdots nocaseglob # advanced filename generation | |
powerline-daemon -q | |
#. /usr/local/lib/python3.6/dist-packages/powerline/bindings/zsh/powerline.zsh | |
case $TERM in | |
xterm*|rxvt*) | |
function _update_title(){print -Pn '\e]0;%n@%m:%4(~,%-1~/.../%1~,%~)\a'} | |
precmd_functions+=(_update_title) ;; | |
esac | |
#. $HOME/torch/install/bin/torch-activate | |
#source $HOME/git/aws-cli/bin/aws_zsh_completer.sh | |
#source $HOME/git/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
#source $HOME/git/oh-my-zsh/plugins/history-substring-search/history-substring-search.zsh | |
# bind UP and DOWN arrow keys | |
zmodload zsh/terminfo | |
bindkey "$terminfo[kcuu1]" history-substring-search-up | |
bindkey "$terminfo[kcud1]" history-substring-search-down | |
# bind UP and DOWN arrow keys (compatibility fallback | |
# for Ubuntu 12.04, Fedora 21, and MacOSX 10.9 users) | |
bindkey '^[[A' history-substring-search-up | |
bindkey '^[[B' history-substring-search-down | |
# bind P and N for EMACS mode | |
bindkey -M emacs '^P' history-substring-search-up | |
bindkey -M emacs '^N' history-substring-search-down | |
# bind k and j for VI mode | |
bindkey -M vicmd 'k' history-substring-search-up | |
bindkey -M vicmd 'j' history-substring-search-down | |
echo \ \ | |
#figlet -f slant $BANNERMSG | |
echo "+-------------------------------------------+" | |
echo "\033[1;96mACTIVE USER:\033[0m" $USER"@"$(hostname)":~" | |
echo "\033[1;95mSYSTEM TIME:\033[0m" $(date) | |
echo "\033[1;93mUNIX UPTIME:\033[0m" $(uptime -p) | |
echo "+-------------------------------------------+" | |
echo \ \ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment