feat(fish): Disable tmux, enable onefetch

- Disabled default tmux startup due to double source
- Fixed onefetch
This commit is contained in:
2025-09-08 11:07:24 +02:00
parent 87247365a1
commit b55297e1c2

View File

@@ -8,7 +8,7 @@ set -U TERMINAL "st"
# Exports # Exports
## zoxide ## zoxide
export FZF_DEFAULT_OPTS='--height 40%' export FZF_DEFAULT_OPTS='--height 40%'
zoxide init fish --cmd cd | source zoxide init fish --cmd z | source
## dwmblocks ## dwmblocks
fish_add_path /home/(whoami)/.local/bin fish_add_path /home/(whoami)/.local/bin
@@ -114,25 +114,23 @@ end
check_config_git_status check_config_git_status
# Start tmux by default # Start tmux by default
if status is-interactive # if status is-interactive
and not set -q TMUX # and not set -q TMUX
exec tmux # exec tmux
end # end
#onefetch #onefetch
# function cd -w='cd' function cd -w='cd'
# zcd $argv || return z $argv || return
# check_directory_for_new_repository check_directory_for_new_repository
# end end
#
# function check_directory_for_new_repository function check_directory_for_new_repository
# set current_repository (git rev-parse --show-toplevel 2> /dev/null) set current_repository (git rev-parse --show-toplevel 2> /dev/null)
# if [ "$current_repository" ] && \ if [ "$current_repository" ] && \
# [ "$current_repository" != "$last_repository" ] [ "$current_repository" != "$last_repository" ]
# onefetch onefetch
# end end
# set -gx last_repository $current_repository set -gx last_repository $current_repository
# end end
#
# funcsave cd
# funcsave check_directory_for_new_repository