migrate dotfiles to this repository
This commit is contained in:
2
home/.config/zsh/haze.zsh
Normal file
2
home/.config/zsh/haze.zsh
Normal file
@@ -0,0 +1,2 @@
|
||||
# Highlight the executable in green if it is found
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
|
||||
30
home/.config/zsh/hooks.sh
Normal file
30
home/.config/zsh/hooks.sh
Normal file
@@ -0,0 +1,30 @@
|
||||
# Hook direnv if present
|
||||
if command -v direnv >/dev/null; then
|
||||
eval "$(direnv hook zsh)"
|
||||
fi
|
||||
|
||||
# Prompt
|
||||
if command -v starship >/dev/null; then
|
||||
source <(starship init zsh)
|
||||
fi
|
||||
|
||||
# Load opam config if present
|
||||
if [ -r ~/.opam/opam-init/init.zsh ]; then
|
||||
source ~/.opam/opam-init/init.zsh > /dev/null 2> /dev/null
|
||||
fi
|
||||
|
||||
# Launch atuin if it is installed
|
||||
if command -v atuin >/dev/null; then
|
||||
eval "$(atuin init zsh)"
|
||||
fi
|
||||
|
||||
# Set ls/tree/fd theme using vivid if it is installed
|
||||
if command -v vivid >/dev/null; then
|
||||
export LS_COLORS="$(vivid generate gruvbox-dark-hard)"
|
||||
fi
|
||||
|
||||
# Init zoxide if present and alias cd to it
|
||||
if command -v zoxide >/dev/null; then
|
||||
eval "$(zoxide init zsh)"
|
||||
alias cd=z
|
||||
fi
|
||||
Reference in New Issue
Block a user