This commit is contained in:
Andrei Stoica 2024-01-22 14:41:41 -05:00
parent 54b784f6ba
commit 8639ac6164
4 changed files with 9 additions and 3 deletions

View File

@ -41,3 +41,4 @@ alias venv='python -m venv'
alias venv2='python2 -m venv'
alias venv3='python3 -m venv'
alias dotvenv='source .venv/bin/activate'
alias ccat='highlight -O ansi --force'

View File

@ -156,3 +156,4 @@ fi
unset __conda_setup
# <<< conda initialize <<<
. "$HOME/.cargo/env"

View File

@ -25,6 +25,10 @@ bind b setw synchronize-panes
# setting vi mode
set-window-option -g mode-keys vi
# reset working dir for session
unbind h
bind h attach-session -t . -c "#{pane_current_path}"
# status bar
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '

6
.zshrc
View File

@ -107,15 +107,15 @@ function work() {
work_dirs=( "$HOME/clones" "$HOME/sandbox" )
goto=$(find $work_dirs -maxdepth 1 -mindepth 1 -type d | fzf --query=$1 --preview "tree -C -L 2 {}")
[ -z $goto ] && return
[ -z $goto ] && return
if [ -z $TMUX ]
if [ -z $TMUX ]
then
tmux new -A -s "$(basename -- $goto)" -c "$goto"
else
tmux new -d -s "$(basename -- $goto)" -c "$goto"
tmux switch-client -t "$(basename -- $goto)"
fi
fi
}