added rust's cargo to path and updated work command
This commit is contained in:
parent
065569b23c
commit
1f180f6618
25
.zshrc
25
.zshrc
|
|
@ -99,21 +99,8 @@ zle -N edit-command-line
|
||||||
bindkey "^v" edit-command-line
|
bindkey "^v" edit-command-line
|
||||||
|
|
||||||
|
|
||||||
|
# adding cargo to path
|
||||||
# >>> conda initialize >>>
|
export PATH=$HOME/.cargo/bin:$PATH
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
|
||||||
__conda_setup="$('/home/andrei/miniconda3/bin/conda' 'shell.zsh' '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 <<<
|
|
||||||
|
|
||||||
|
|
||||||
# Open work folder with fuzzy finder
|
# Open work folder with fuzzy finder
|
||||||
|
|
@ -127,6 +114,12 @@ function work() {
|
||||||
projects=( "${projects[@]}" "${p[@]}" )
|
projects=( "${projects[@]}" "${p[@]}" )
|
||||||
done
|
done
|
||||||
|
|
||||||
goto=$(echo "$projects" | fzf --preview "tree -C -L 2 {}")
|
goto=$(echo "$projects" | fzf --query=$1 --preview "tree -C -L 2 {}")
|
||||||
|
if [ -z $TMUX ]
|
||||||
|
then
|
||||||
tmux new -A -s "$(basename -- $goto)" -c "$goto"
|
tmux new -A -s "$(basename -- $goto)" -c "$goto"
|
||||||
|
else
|
||||||
|
tmux new -d -s "$(basename -- $goto)" -c "$goto"
|
||||||
|
tmux switch-client -t "$(basename -- $goto)"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue