diff --git a/.aliases b/.aliases index f8679e7..ba9678d 100644 --- a/.aliases +++ b/.aliases @@ -42,3 +42,4 @@ alias venv2='python2 -m venv' alias venv3='python3 -m venv' alias dotvenv='source .venv/bin/activate' alias todo='rusty-tasks' +alias ccat='highlight -O ansi --force' diff --git a/.bashrc b/.bashrc index 1778629..498a42b 100644 --- a/.bashrc +++ b/.bashrc @@ -141,53 +141,4 @@ TERM=xterm-256color export VISUAL=vim export EDITOR="$VISUAL" -# >>> conda initialize >>> -# !! Contents within this block are managed by 'conda init' !! -__conda_setup="$('/home/andrei/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)" -if [ $? -eq 0 ]; then - eval "$__conda_setup" -else - if [ -f "/home/andrei/miniconda3/etc/profile.d/conda.sh" ]; then - . "/home/andrei/miniconda3/etc/profile.d/conda.sh" - else - export PATH="/home/andrei/miniconda3/bin:$PATH" - fi -fi -unset __conda_setup -# <<< conda initialize <<< - - - -# JINA_CLI_BEGIN - -## autocomplete -_jina() { - COMPREPLY=() - local word="${COMP_WORDS[COMP_CWORD]}" - - if [ "$COMP_CWORD" -eq 1 ]; then - COMPREPLY=( $(compgen -W "$(jina commands)" -- "$word") ) - else - local words=("${COMP_WORDS[@]}") - unset words[0] - unset words[$COMP_CWORD] - local completions=$(jina completions "${words[@]}") - COMPREPLY=( $(compgen -W "$completions" -- "$word") ) - fi -} - -complete -F _jina jina - -# session-wise fix -ulimit -n 4096 -export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES -# default workspace for Executors - -# JINA_CLI_END - - - - - - - +. "$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 a617b44..183bb88 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 }