From cc70db25c60fa1b74b683ee38ab965b3a3131207 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Sun, 16 Nov 2025 20:54:22 -0500 Subject: [PATCH] Update profile and zsh to remove pass from .profile --- home/.profile | 3 --- home/.zshrc | 10 ++++++++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/home/.profile b/home/.profile index 37c2c11..54c686a 100644 --- a/home/.profile +++ b/home/.profile @@ -4,6 +4,3 @@ 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)" diff --git a/home/.zshrc b/home/.zshrc index 98ba654..6ad2844 100644 --- a/home/.zshrc +++ b/home/.zshrc @@ -25,6 +25,8 @@ export LS_COLORS='di=1;37:ln=35:so=32:pi=33:ex=1;32:bd=34;46:cd=34;43:su=30;41:s export XKB_DEFAULT_OPTIONS="caps:escape" export PASSWORD_STORE_CHARACTER_SET='a-zA-Z0-9+\-$!*_=' export XDEB_PKGROOT=${HOME}/.config/xdeb +export EDITOR=nvim +export TERMINAL=ghostty # Custom path additions source ~/.profile @@ -36,7 +38,9 @@ source ~/.profile alias clip2png="xclip -selection clipboard -target image/png -out" alias k="kubectl" - +ssh() { + NO_TMUX=1 nohup ghostty --command="ssh $*" >/dev/null 2>&1 & +} #============================================================================== # Functions @@ -101,6 +105,8 @@ gemini() { claude() { unset -f claude + export ANTHROPIC_BASE_URL=https://api.z.ai/api/anthropic + export ANTHROPIC_AUTH_TOKEN="$(pass list zai_token)" npm 2>&1 1>/dev/null claude "$@" } @@ -163,7 +169,7 @@ else alias ls="ls --classify --group-directories-first --color" fi -if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]]; then +if [[ -z "$TMUX" ]] && [[ -n "$PS1" ]] && [[ -z "$NO_TMUX" ]]; then tmux attach -t dev || tmux new -s dev fi