diff --git a/.zshrc b/.zshrc index 8c711e0..d347eff 100644 --- a/.zshrc +++ b/.zshrc @@ -3,6 +3,8 @@ # autoload -Uz compinit promptinit +autoload -z edit-command-line +zle -N edit-command-line compinit promptinit @@ -12,6 +14,15 @@ prompt fade green # Return Code on right prompt RPS1='[%F{yellow}%?%f]' +# history stuff +HISTFILE=~/.histfile +HISTSIZE=1000 +SAVEHIST=1000 +setopt appendhistory +bindkey -e + + + # thanks to slashbeast for these ones # Fancy cd that can cd into parent directory, if trying to cd into file. # useful with ^F fuzzy searcher. @@ -66,3 +77,4 @@ PS1='%F{green}%B%K{green}█▓▒░%F{white}%K{green}%B%n@%m%b%F{green}%K{blac alias grep='grep --colour=auto' alias ll='ls -alFh' lt () { ls -lt ${1} | head } +EDITOR=vim