This commit is contained in:
2026-04-04 06:25:34 +02:00
parent 93e8a13765
commit 18ac682f98
10 changed files with 56 additions and 40 deletions
+10 -10
View File
@@ -2,6 +2,16 @@
[[ $- == *i* ]] || return
if type fish &>/dev/null; then
alias f="exec fish"
if [[ ${UY_ENABLE_FISH_AUTO_LOGIN:-0} == 1 ]] &&
[[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
exec fish $LOGIN_OPTION
fi
fi
HISTCONTROL=ignoreboth
HISTSIZE=16384
HISTFILESIZE=32768
@@ -52,16 +62,6 @@ if [[ ${UY_USING_SSH_AGENT:-0} == 1 ]]; then
}
fi
if type fish &>/dev/null; then
alias f="exec fish"
if [[ ${UY_ENABLE_FISH_AUTO_LOGIN:-0} == 1 ]] &&
[[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} && ${SHLVL} == 1 ]]; then
shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
exec fish $LOGIN_OPTION
fi
fi
if type starship &>/dev/null; then
eval $(starship init bash)
fi
@@ -1,7 +1,7 @@
# ssh with encrypted private keys
# $ssh_keys should be set in advance or left empty to use the default keys
if set -q ENABLE_GPG_AGENT_SSH; and test $ENABLE_GPG_AGENT_SSH != "0";\
if set -q UY_ENABLE_GPG_AGENT_SSH; and test $UY_ENABLE_GPG_AGENT_SSH != "0";\
and type -q gpg-init; and type -q gpgconf
true # do nothing
@@ -1,4 +1,10 @@
fpath=(~/.zfunc $fpath)
if [ -d "$HOME/.zfunc" ]; then
fpath=($HOME/.zfunc $fpath)
fi
if [ -d "$HOME/.zsh/completions" ]; then
fpath=($HOME/.zsh/completions $fpath)
fi
# Cache compinit: only regenerate dump once daily
autoload -Uz compinit
@@ -29,3 +29,9 @@ fi
# Catppuccin Mocha — autosuggestions color
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#6c7086"
# Vscode shell integration
if (( $+commands[code] )) && [[ "$TERM_PROGRAM" == "vscode" ]]; then
source "$(code --locate-shell-integration-path zsh)"
fi
@@ -1,2 +0,0 @@
*
!.gitignore
-12
View File
@@ -1,21 +1,9 @@
# lrx completions
fpath=(/home/kolkas/.zsh/completions $fpath)
#!/hint/zsh
[[ $- != *i* ]] && return
for _f in "${XDG_CONFIG_HOME:-$HOME/.config}"/zsh/conf.d/*.zsh(N); do
source "$_f"
done
for _f in "${XDG_CONFIG_HOME:-$HOME/.config}"/zsh/funcs.d/*.zsh(N); do
source "$_f"
done
for _f in "${XDG_CONFIG_HOME:-$HOME/.config}"/zsh/funcs.d/_*(N); do
source "$_f"
done
unset _f