my dotfiles
run setup.sh
then add to .zshrc:
export PATH=$HOME/.local/bin:$PATH
export EDITOR=nvim
alias vv=nvim
function tmi () {
session=$(basename $PWD)
tmux has-session -t $session 2> /dev/null
tmux_session_exists=$?
if [ $tmux_session_exists != 0 ]; then
tmux new-session -s $session
else
tmux attach-session -dt $session
fi
}
function jump () {
workspace_dir=$HOME/workspace
pushd $workspace_dir > /dev/null
project_dir=$(find . -maxdepth 2 -type d | fzf)
did_selection=$?
popd > /dev/null
if [ $did_selection = 0 ]; then
cd $workspace_dir/$project_dir && tmi
fi
}