Improve swap_mode command

This commit is contained in:
Alex Selimov 2025-10-06 20:02:46 -04:00
parent 47b0bbbdc5
commit dc6c3cda99
Signed by: aselimov
GPG key ID: 3DDB9C3E023F1F31
6 changed files with 45 additions and 6 deletions

View file

@ -2,5 +2,8 @@
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin:$HOME/.local/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"
export ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic
export ANTHROPIC_AUTH_TOKEN="$(pass list zai_token)"

View file

@ -2,5 +2,5 @@
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin"
export PATH="$PATH:/usr/local/cuda-12.8/bin:$HOME/bin:$HOME/.local/bin"
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/local/cuda-12.8/lib64"

View file

@ -16,6 +16,8 @@ setopt HIST_IGNORE_SPACE # Don't save commands starting with space
# Environment Variables
#==============================================================================
source ~/.profile
export OMPI_MCA_rmaps_base_oversubscribe=1
export CLICOLOR=1
export LSCOLORS=ExGxBxDxCxEgEdxbxgxcxd
@ -106,10 +108,13 @@ gemini() {
unset -f nvm node npm gemini
load_nvm
gemini "$@"
}
claude() {
unset -f claude
npm 2>&1 1>/dev/null
claude "$@"
}
# ghcup
[ -f "/home/aselimov/.ghcup/env" ] && . "/home/aselimov/.ghcup/env" # ghcup-env