feat(fish): Add dotfiles update notice

This commit is contained in:
2025-09-08 10:54:38 +02:00
parent 693a0a7d15
commit 87247365a1

View File

@@ -100,7 +100,20 @@ end
bind -e \cv
## Start tmux by default
# Check if dotfiles have any updates
function check_config_git_status
set config_dir $HOME/.config
if test -d $config_dir/.git
set dotfiles_status (git -C $config_dir status --porcelain)
if test -n "$dotfiles_status"
echo (set_color yellow)"[.config] There are uncommitted changes or untracked files."(set_color normal)
end
end
end
check_config_git_status
# Start tmux by default
if status is-interactive
and not set -q TMUX
exec tmux