diff --git a/.aliases b/.aliases index c343b6e..2d7ecd1 100644 --- a/.aliases +++ b/.aliases @@ -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' diff --git a/.bashrc b/.bashrc index 38031c0..b073e7f 100644 --- a/.bashrc +++ b/.bashrc @@ -156,3 +156,4 @@ fi unset __conda_setup # <<< conda initialize <<< +. "$HOME/.cargo/env" diff --git a/.tmux.conf##os.Linux b/.tmux.conf##os.Linux index a6e0c61..72044de 100644 --- a/.tmux.conf##os.Linux +++ b/.tmux.conf##os.Linux @@ -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 ' diff --git a/.zshrc b/.zshrc index ff792c2..03b3849 100644 --- a/.zshrc +++ b/.zshrc @@ -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 }