Created
May 10, 2017 16:34
-
-
Save evacchi/95e033b6c086cfd943bb1accd5e7577d to your computer and use it in GitHub Desktop.
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
| # Lines configured by zsh-newuser-install | |
| HISTFILE=~/.histfile | |
| HISTSIZE=1000 | |
| SAVEHIST=1000 | |
| setopt appendhistory autocd extendedglob notify correct | |
| # End of lines configured by zsh-newuser-install | |
| # load zgen | |
| source ~/.local/opt/zgen/zgen.zsh | |
| # if the init scipt doesn't exist | |
| if ! zgen saved; then | |
| # specify plugins here | |
| MODULES=~/dotfiles/zsh/private/modules | |
| zgen load "djui/alias-tips" | |
| zgen load "mafredri/zsh-async" | |
| # prompt | |
| zgen load "miekg/lean" | |
| # zgen load "sindresorhus/pure" | |
| # zgen load mgee/slimline | |
| # zgen load "therealklanni/purity" | |
| # code complete | |
| zgen load $MODULES/completion | |
| # key bindings | |
| zgen load $MODULES/editor | |
| zgen load "zsh-users/zsh-completions" | |
| # zgen load "zsh-users/zsh-autosuggestions" | |
| zgen load "zsh-users/zsh-history-substring-search" | |
| zgen load "zsh-users/zsh-syntax-highlighting" | |
| zgen save | |
| fi | |
| bindkey -e # emacs bindings | |
| #autoload -U promptinit | |
| #promptinit | |
| # prompt pure | |
| ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=10' # gray suggestion | |
| # zsh history substring search | |
| zmodload zsh/terminfo | |
| bindkey "$terminfo[kcuu1]" history-substring-search-up | |
| bindkey "$terminfo[kcud1]" history-substring-search-down | |
| PROMPT_LEAN_LEFT=lean_left | |
| lean_left() { | |
| if [[ ! -z $CONDA_PREFIX ]]; then | |
| echo "($(basename $CONDA_PREFIX)) " | |
| fi | |
| } | |
| # clear any strange settings in plugins | |
| # e.g., restores ENTER<=>^M in program inputs | |
| stty sane |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment