alias
This commit is contained in:
parent
54b784f6ba
commit
8639ac6164
1
.aliases
1
.aliases
|
|
@ -41,3 +41,4 @@ alias venv='python -m venv'
|
||||||
alias venv2='python2 -m venv'
|
alias venv2='python2 -m venv'
|
||||||
alias venv3='python3 -m venv'
|
alias venv3='python3 -m venv'
|
||||||
alias dotvenv='source .venv/bin/activate'
|
alias dotvenv='source .venv/bin/activate'
|
||||||
|
alias ccat='highlight -O ansi --force'
|
||||||
|
|
|
||||||
1
.bashrc
1
.bashrc
|
|
@ -156,3 +156,4 @@ fi
|
||||||
unset __conda_setup
|
unset __conda_setup
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
. "$HOME/.cargo/env"
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,10 @@ bind b setw synchronize-panes
|
||||||
# setting vi mode
|
# setting vi mode
|
||||||
set-window-option -g mode-keys vi
|
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
|
# status bar
|
||||||
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '
|
set -g status-right '♥#(acpi | cut -d ',' -f 2) | %H:%m %d-%b-%y '
|
||||||
|
|
||||||
|
|
|
||||||
6
.zshrc
6
.zshrc
|
|
@ -107,15 +107,15 @@ function work() {
|
||||||
work_dirs=( "$HOME/clones" "$HOME/sandbox" )
|
work_dirs=( "$HOME/clones" "$HOME/sandbox" )
|
||||||
|
|
||||||
goto=$(find $work_dirs -maxdepth 1 -mindepth 1 -type d | fzf --query=$1 --preview "tree -C -L 2 {}")
|
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
|
then
|
||||||
tmux new -A -s "$(basename -- $goto)" -c "$goto"
|
tmux new -A -s "$(basename -- $goto)" -c "$goto"
|
||||||
else
|
else
|
||||||
tmux new -d -s "$(basename -- $goto)" -c "$goto"
|
tmux new -d -s "$(basename -- $goto)" -c "$goto"
|
||||||
tmux switch-client -t "$(basename -- $goto)"
|
tmux switch-client -t "$(basename -- $goto)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue