bashish navigation
This commit is contained in:
parent
782ea576f7
commit
560d272d4d
1 changed files with 5 additions and 1 deletions
6
.zshrc
6
.zshrc
|
@ -28,6 +28,10 @@ promptinit
|
||||||
PROMPT="%{$fg_no_bold[blue]%}%n%{$reset_color%}%{$fg_no_bold[red]%}%#%{$reset_color%}%{$fg_no_bold[blue]%}%m%{$reset_color%}%{$fg_no_bold[green]%}%~:%{$fg_no_bold[yellow]%}%?%{$fg_no_bold[green]%}$ %{$reset_color%}"
|
PROMPT="%{$fg_no_bold[blue]%}%n%{$reset_color%}%{$fg_no_bold[red]%}%#%{$reset_color%}%{$fg_no_bold[blue]%}%m%{$reset_color%}%{$fg_no_bold[green]%}%~:%{$fg_no_bold[yellow]%}%?%{$fg_no_bold[green]%}$ %{$reset_color%}"
|
||||||
RPROMPT="%{$fg_no_bold[green]%}%~%{$reset_color%} [%{$fg_no_bold[yellow]%}%*%{$reset_color%}]"
|
RPROMPT="%{$fg_no_bold[green]%}%~%{$reset_color%} [%{$fg_no_bold[yellow]%}%*%{$reset_color%}]"
|
||||||
|
|
||||||
|
# Bashish navigation
|
||||||
|
autoload -U select-word-style
|
||||||
|
select-word-style bash
|
||||||
|
|
||||||
# Show cwd in titlebar
|
# Show cwd in titlebar
|
||||||
precmd() {
|
precmd() {
|
||||||
tab_label=${PWD/${HOME}/\~}
|
tab_label=${PWD/${HOME}/\~}
|
||||||
|
@ -40,4 +44,4 @@ REPORTTIME=1
|
||||||
alias ../..='cd ../..'
|
alias ../..='cd ../..'
|
||||||
alias ../../..='cd ../../..'
|
alias ../../..='cd ../../..'
|
||||||
|
|
||||||
. ~/.autoload
|
. ~/.profile
|
||||||
|
|
Loading…
Add table
Reference in a new issue