summaryrefslogtreecommitdiff
path: root/config/essentials
diff options
context:
space:
mode:
Diffstat (limited to 'config/essentials')
-rw-r--r--config/essentials/zsh/.zshrc9
1 files changed, 5 insertions, 4 deletions
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 99c65d7..90f4b14 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -145,13 +145,14 @@ function osc7 {
add-zsh-hook -Uz chpwd osc7
command_not_found_handler () {
if [[ -o interactive ]] && isTextFile "$1"
- then
- "$EDITOR" "$1"
- else
- echo "zsh: command not found: $1" >&2
+ then "$EDITOR" "$1"
+ else echo "zsh: command not found: $1" >&2
fi
}
+# automatic ls after cd
+add-zsh-hook -Uz chpwd (){[ "$PWD" != "$HOME" ] && ls -a; }
+
# prompt
PS1=' %K{16}%B%(#.%F{1}.%F{13})%n%b%f@%B%F{6}%m%b%f %3~%k '
RPROMPT='%F{blue}$(parse_git_remote)%f%F{red}$(parse_git_status)%f%F{green}$(parse_git_branch)%f%(?.. %?)'