|
|
@@ -43,27 +43,6 @@ bindkey '\C-v' edit-command-line
|
|
|
bindkey '\Ea' push-line
|
|
|
local WORDCHARS=${WORDCHARS//\//}\| # remove forward slash, add pipe
|
|
|
|
|
|
-autoload colors
|
|
|
-colors
|
|
|
-bright_cyan='%{[96m%}' # not provided by colors
|
|
|
-autoload -Uz vcs_info
|
|
|
-zstyle ':vcs_info:*' unstagedstr "%{$fg[red]%}*"
|
|
|
-zstyle ':vcs_info:*' stagedstr "%{$fg[red]%}+"
|
|
|
-zstyle ':vcs_info:*' formats "$bright_cyan%b%u%c"
|
|
|
-zstyle ':vcs_info:*' actionformats "$bright_cyan%b%u%c|%a"
|
|
|
-zstyle ':vcs_info:git:*' check-for-changes true
|
|
|
-zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b:%r'
|
|
|
-zstyle ':vcs_info:bzr:*' use-simple true
|
|
|
-zstyle ':vcs_info:*' enable git hg bzr svn cvs
|
|
|
-precmd () { vcs_info }
|
|
|
-PROMPT="%{$fg_bold[grey]%}%* " # time
|
|
|
-PROMPT+="%{${fg_bold[green]}%}%m%{${reset_color}%}:" # host
|
|
|
-PROMPT+="%{${fg_bold[blue]}%}%50<...<%~%<<%{${reset_color}%} " # path
|
|
|
-PROMPT+='${vcs_info_msg_0_} '
|
|
|
-PROMPT+="%(?..%{$fg_bold[red]%}%? %{$reset_color%})" # exit status
|
|
|
-PROMPT+="%1(j.%{$fg[green]%}%j .)" # suspended jobs
|
|
|
-PROMPT+=$'%{$reset_color%} \n%(!.#.\$) '
|
|
|
-
|
|
|
autoload -U url-quote-magic
|
|
|
zle -N self-insert url-quote-magic
|
|
|
|
|
|
@@ -144,6 +123,31 @@ if [ -d $HOME/bin ]; then
|
|
|
PATH=$HOME/bin:$PATH
|
|
|
fi
|
|
|
|
|
|
+if builtin which starship > /dev/null; then
|
|
|
+ eval "$(starship init zsh)"
|
|
|
+else
|
|
|
+ autoload colors
|
|
|
+ colors
|
|
|
+ bright_cyan='%{[96m%}' # not provided by colors
|
|
|
+ autoload -Uz vcs_info
|
|
|
+ zstyle ':vcs_info:*' unstagedstr "%{$fg[red]%}*"
|
|
|
+ zstyle ':vcs_info:*' stagedstr "%{$fg[red]%}+"
|
|
|
+ zstyle ':vcs_info:*' formats "$bright_cyan%b%u%c"
|
|
|
+ zstyle ':vcs_info:*' actionformats "$bright_cyan%b%u%c|%a"
|
|
|
+ zstyle ':vcs_info:git:*' check-for-changes true
|
|
|
+ zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b:%r'
|
|
|
+ zstyle ':vcs_info:bzr:*' use-simple true
|
|
|
+ zstyle ':vcs_info:*' enable git hg bzr svn cvs
|
|
|
+ precmd () { vcs_info }
|
|
|
+ PROMPT="%{$fg_bold[grey]%}%* " # time
|
|
|
+ PROMPT+="%{${fg_bold[green]}%}%m%{${reset_color}%}:" # host
|
|
|
+ PROMPT+="%{${fg_bold[blue]}%}%50<...<%~%<<%{${reset_color}%} " # path
|
|
|
+ PROMPT+='${vcs_info_msg_0_} '
|
|
|
+ PROMPT+="%(?..%{$fg_bold[red]%}%? %{$reset_color%})" # exit status
|
|
|
+ PROMPT+="%1(j.%{$fg[green]%}%j .)" # suspended jobs
|
|
|
+ PROMPT+=$'%{$reset_color%} \n%(!.#.\$) '
|
|
|
+fi
|
|
|
+
|
|
|
if [ -x /usr/bin/fzf ]; then
|
|
|
FZF_DEFAULT_OPTS='--no-mouse'
|
|
|
source "/usr/share/doc/fzf/examples/key-bindings.zsh"
|