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