zsh: some functions and completion
This commit is contained in:
parent
0d6a5e0b69
commit
220886b461
2 changed files with 6 additions and 1 deletions
|
@ -31,6 +31,11 @@ typeset -A prompt_colors=(
|
|||
bang '8'
|
||||
)
|
||||
|
||||
prompt.set_bang() {
|
||||
(( $# )) || return 1
|
||||
prompt_symbols[bang]=$1
|
||||
}
|
||||
|
||||
precmd.is_git_repo() {
|
||||
typeset prompt_git_dir
|
||||
prompt_git_dir=$(git rev-parse --git-dir 2>/dev/null) || return 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue