added a whole bunch of stuff

This commit is contained in:
venus
2026-10-03 00:24:52 -05:00
parent 859dbd855a
commit 82bdd28981
5 changed files with 262 additions and 200 deletions
+18 -4
View File
@@ -1,12 +1,19 @@
#! /bin/env zsh
# main zsh settings. env in .zshrc
# read second
if [ $debug = 1 ]; then echo reading config from $0
fi
# Remove the default of run-help being aliased to man
unalias run-help 2>/dev/null
# Use zsh's run-help, which will display information for zsh builtins.
autoload run-help
alias help="run-help"
# source global shell alias & variables files
[ -f "$XDG_CONFIG_HOME/zsh/alias" ] && source "$XDG_CONFIG_HOME/zsh/alias"
[ -f "$XDG_CONFIG_HOME/zsh/vars" ] && source "$XDG_CONFIG_HOME/zsh/vars"
[ -f "$XDG_CONFIG_HOME/zsh/functions" ] && source "$XDG_CONFIG_HOME/zsh/functions"
[ -f "$XDG_CONFIG_HOME/zsh/alias" ] && source "$XDG_CONFIG_HOME/zsh/alias"
# load modules
zmodload zsh/complist
@@ -63,6 +70,7 @@ bindkey "^\ek" history-beginning-search-backward
bindkey -s '^[[1;5A' "!!^M"
bindkey '^ ' autosuggest-execute #accept and execute autosuggestion
# bindkey '^[' autosuggest-execute #accept and execute autosuggestion
# open fff file manager with ctrl f
# openfff() {
# fff <$TTY
@@ -83,9 +91,15 @@ bindkey '^ ' autosuggest-execute #accept and execute autosuggestion
# fi
#setup oh-my-posh shell
if [ $TERM = "xterm-kitty" ] || [ $NVIM ]; then
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/zsh/shell.omp.json)"
if [ $(which oh-my-posh) ]; then
# check if config file exists
if [ -f "$XDG_CONFIG_HOME/zsh/shell.omp.json" ]; then
eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/zsh/shell.omp.json)"
fi
fi
# if [ $TERM = "xterm-kitty" ] || [ $NVIM ] || [ $TERM = "tmux-256color" ]; then
# eval "$(oh-my-posh init zsh --config $XDG_CONFIG_HOME/zsh/shell.omp.json)"
# fi
# replace cd with zoxide (fzf support for changing dir)
eval "$(zoxide init zsh)"