diff options
author | Alex Auvolat <alex@adnab.me> | 2021-03-14 15:04:59 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-03-14 15:04:59 +0100 |
commit | 9da0cbe5efc55d5c8a7726ab2ca57595f2677c8f (patch) | |
tree | 7598bef7633dd98c352f6ee6b1608690f8230235 /old/dot_zshrc | |
parent | ae2e8ad7c2e1812b171eeca57ac00f8ba5d20cf5 (diff) | |
download | user-config-9da0cbe5efc55d5c8a7726ab2ca57595f2677c8f.tar.gz user-config-9da0cbe5efc55d5c8a7726ab2ca57595f2677c8f.zip |
Move files around
Diffstat (limited to 'old/dot_zshrc')
-rw-r--r-- | old/dot_zshrc | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/old/dot_zshrc b/old/dot_zshrc new file mode 100644 index 0000000..458aa37 --- /dev/null +++ b/old/dot_zshrc @@ -0,0 +1,89 @@ +# The following lines were added by compinstall + +zstyle ':completion:*' completer _complete _ignored _approximate +zstyle ':completion:*' matcher-list '' 'm:{[:lower:]}={[:upper:]}' 'r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} l:|=* r:|=*' +zstyle ':completion:*' max-errors 1 +zstyle :compinstall filename '/home/katchup/.zshrc' + +autoload -Uz compinit +compinit +# End of lines added by compinstall +# Lines configured by zsh-newuser-install +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +bindkey -v +# End of lines configured by zsh-newuser-install + +## VCS INFO + +autoload -Uz vcs_info + +zstyle ':vcs_info:*' stagedstr '%F{28}%B*%b' +zstyle ':vcs_info:*' unstagedstr '%F{11}%B*%b' +zstyle ':vcs_info:*' check-for-changes true +zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r' +zstyle ':vcs_info:*' enable git svn +function precmd () { + if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] { + zstyle ':vcs_info:*' formats ' %F{blue}[%F{green}%b%c%u%F{blue}]' + } else { + zstyle ':vcs_info:*' formats ' %F{blue}[%F{green}%b%c%u%F{red}%B*%b%F{blue}]' + } + + vcs_info +} + + +# PROMPT + +autoload -U promptinit +promptinit +setopt prompt_subst + +PROMPT=" +%B[%?] %F{red}%~%b \${vcs_info_msg_0_} + %F{white}%(#.#.$) " +RPROMPT="%F{cyan}%n@%m%F{white}" + +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + + +# ENV + +alias ls='ls --color=auto' + +export EDITOR=vim +export GOPATH=$HOME/go + +export PATH=$PATH:$HOME/usr/bin:$HOME/go/bin +export LD_LIBRARY_PATH=$HOME/usr/lib + +export WINEARCH=win32 + +alias clipper='ssh -R 9876:localhost:9872 auvolat@sas.eleves.ens.fr' +alias cargo='ssh auvolat@cargo.ens.fr' +alias tremble='ssh auvolat@tremble.ens.fr' +alias tulipier='ssh auvolat@tulipier.ens.fr' +# conseil : utiliser tulipier pour bosser, sas.eleves pour IRC + +alias vps='ssh katchup@vps46149.ovh.net' +alias irc='ssh -t -R 9872:localhost:9872 adnab.me irc' + +alias ocamltop='rlwrap ocaml "$@"' + + +# TADA +expand -t 4 $HOME/Core/TODO + + + +export CLOUDSDK_PYTHON=/usr/bin/python2 +export PATH=$PATH:$HOME/usr/google-cloud-sdk/bin +source $HOME/usr/google-cloud-sdk/completion.zsh.inc + +# OPAM configuration +. /home/katchup/.opam/opam-init/init.zsh > /dev/null 2> /dev/null || true +export PATH=$PATH:$HOME/usr/google-cloud-sdk/bin:$HOME/.opam/system/bin + +export SDL_VIDEO_X11_DGAMOUSE=0 |