minor changes, gotta keep this stuff improving right?

This commit is contained in:
Solomon Laing 2025-05-30 17:05:45 +09:30
parent 7e027ecce7
commit 113372358a
2 changed files with 6 additions and 4 deletions

View File

@ -189,10 +189,12 @@ map me mkfile_and_edit
map gh cd map gh cd
map gd cd ~/Downloads map gd cd ~/Downloads
map gr cd ~/repos map grr cd ~/repos
map grm cd ~/repos/gitlab.com/inkletblot
map grg cd ~/repos/github.com
map gz cd ~/notes map gz cd ~/notes
map gn cd ~/nextcloud map gn cd ~/nextcloud
map gH cd ~/nextcloud/university/Honours map gW cd ~/nextcloud/WGV
map gcc cd ~/.config map gcc cd ~/.config
map gcn cd ~/.config/nvim map gcn cd ~/.config/nvim
map gcl cd ~/.config/lf map gcl cd ~/.config/lf

View File

@ -6,7 +6,7 @@
if [[ $# -eq 1 ]]; then if [[ $# -eq 1 ]]; then
selected=$1 selected=$1
else else
selected=$(find ~/repos ~/.config ~/ ~/work ~/.xmonad ~/nextcloud -mindepth 1 -maxdepth 1 -type d | fzf) selected=$(find ~/repos/github.com/*/ ~/repos/gitlab.com/inkletblot ~/.config ~/ ~/nextcloud ~/nextcloud/*/ -mindepth 1 -maxdepth 1 -type d | fzf)
fi fi
if [[ -z $selected ]]; then if [[ -z $selected ]]; then
@ -21,7 +21,7 @@ if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
exit 0 exit 0
fi fi
if ! tmux has-session -t="$selected_name" 2> /dev/null; then if ! tmux has-session -t="$selected_name" 2>/dev/null; then
tmux new-session -ds "$selected_name" -c "$selected" tmux new-session -ds "$selected_name" -c "$selected"
fi fi