Some adds
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
set -Ux PYENV_ROOT $HOME/.pyenv
|
||||||
|
set -U fish_user_paths $PYENV_ROOT/bin $fish_user_paths
|
||||||
|
|
||||||
|
# Load pyenv automatically by appending
|
||||||
|
# the following to ~/.config/fish/config.fish:
|
||||||
|
|
||||||
|
# Restart your shell for the changes to take effect.
|
||||||
+7
-1
@@ -35,8 +35,10 @@ if status is-interactive
|
|||||||
set -q KREW_ROOT; and set -gx PATH $PATH $KREW_ROOT/.krew/bin; or set -gx PATH $PATH $HOME/.krew/bin
|
set -q KREW_ROOT; and set -gx PATH $PATH $KREW_ROOT/.krew/bin; or set -gx PATH $PATH $HOME/.krew/bin
|
||||||
|
|
||||||
set -U autovenv_enable yes
|
set -U autovenv_enable yes
|
||||||
set -U autovenv_announce no
|
set -U autovenv_announce yes
|
||||||
set -U autovenv_dir .venv
|
set -U autovenv_dir .venv
|
||||||
|
|
||||||
|
git-refresh
|
||||||
# Check max tmux window in the Home session and open the Home session in a new tmux window
|
# Check max tmux window in the Home session and open the Home session in a new tmux window
|
||||||
# Find max window number in the Home session
|
# Find max window number in the Home session
|
||||||
#if test -z "$TMUX";
|
#if test -z "$TMUX";
|
||||||
@@ -57,3 +59,7 @@ fish_add_path /home/df/.opencode/bin
|
|||||||
# Added by LM Studio CLI (lms)
|
# Added by LM Studio CLI (lms)
|
||||||
set -gx PATH $PATH /home/df/.lmstudio/bin
|
set -gx PATH $PATH /home/df/.lmstudio/bin
|
||||||
# End of LM Studio CLI section
|
# End of LM Studio CLI section
|
||||||
|
|
||||||
|
# bun
|
||||||
|
set --export BUN_INSTALL "$HOME/.bun"
|
||||||
|
set --export PATH $BUN_INSTALL/bin $PATH
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
# git-refresh initialization hook
|
||||||
|
#
|
||||||
|
# You can use the following variables in this file:
|
||||||
|
# * $package package name
|
||||||
|
# * $path package path
|
||||||
|
# * $dependencies package dependencies
|
||||||
|
|
||||||
|
# Timeout in seconds before allowing another git pull (default: 15 minutes)
|
||||||
|
set -q GIT_REFRESH_TIMEOUT; or set -g GIT_REFRESH_TIMEOUT 900
|
||||||
|
|
||||||
|
function git-refresh --on-variable PWD \
|
||||||
|
--description "git pull automatically wherever inside a git repository"
|
||||||
|
test -d .git; or return
|
||||||
|
|
||||||
|
set --local fetch_head .git/FETCH_HEAD
|
||||||
|
if test -f $fetch_head
|
||||||
|
set --local age (math (date +%s) - (stat -c %Y $fetch_head 2>/dev/null; or stat -f %m $fetch_head))
|
||||||
|
if test $age -lt $GIT_REFRESH_TIMEOUT
|
||||||
|
echo -e "\e[1m(git-refresh) - Cooldown: "(math $GIT_REFRESH_TIMEOUT - $age)"s remaining\e[0m"
|
||||||
|
return
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
echo -e "\e[1m(git-refresh) - GIT repo detected\e[0m"
|
||||||
|
git pull --all --verbose
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user