chore(misc): adjust zsh configuration and starship config path
The changes tidy up the .zshrc, enable extendedglob, and correct the starship config path to a conventional location. New Features - Enhancements - Added `setopt extendedglob`. - Updated `zcompdump` path to `$HOME/.config/zsh/zcompdump`. - Changed `STARSHIP_CONFIG` to `$HOME/.config/starship.toml`. Bug Fixes -
This commit is contained in:
1 file changed
+3
-2
+3
-2
@@ -1,3 +1,4 @@
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# ┬ ┬┌─┐┬─┐┌─┐
|
||||
@@ -20,7 +21,7 @@ fi
|
||||
# │ │ │├─┤ ││ ├┤ ││││ ┬││││├┤
|
||||
# ┴─┘└─┘┴ ┴─┴┘ └─┘┘└┘└─┘┴┘└┘└─┘
|
||||
autoload -Uz compinit
|
||||
|
||||
setopt extendedglob
|
||||
local zcompdump="$HOME/.config/zsh/zcompdump"
|
||||
|
||||
if [[ -n "$zcompdump"(#qN.mh+24) ]]; then
|
||||
@@ -98,7 +99,7 @@ setopt COMPLETE_IN_WORD # Complete from both ends of a word.
|
||||
# │ ├─┤├┤ ├─┘├┬┘│ ││││├─┘ │
|
||||
# ┴ ┴ ┴└─┘ ┴ ┴└─└─┘┴ ┴┴ ┴
|
||||
|
||||
export STARSHIP_CONFIG="$XDG_CONFIG_HOME/starship.toml"
|
||||
export STARSHIP_CONFIG="$HOME/.config/starship.toml"
|
||||
eval "$(starship init zsh)"
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user