From 87247365a1b9d428af48c51e4184edb348c0e90c Mon Sep 17 00:00:00 2001 From: Wessel Tip Date: Mon, 8 Sep 2025 10:54:38 +0200 Subject: [PATCH] feat(fish): Add dotfiles update notice --- fish/config.fish | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/fish/config.fish b/fish/config.fish index 5106ff8..522005b 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -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