minor changes, gotta keep this stuff improving right?
This commit is contained in:
parent
7e027ecce7
commit
113372358a
@ -189,10 +189,12 @@ map me mkfile_and_edit
|
||||
|
||||
map gh cd
|
||||
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 gn cd ~/nextcloud
|
||||
map gH cd ~/nextcloud/university/Honours
|
||||
map gW cd ~/nextcloud/WGV
|
||||
map gcc cd ~/.config
|
||||
map gcn cd ~/.config/nvim
|
||||
map gcl cd ~/.config/lf
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
if [[ $# -eq 1 ]]; then
|
||||
selected=$1
|
||||
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
|
||||
|
||||
if [[ -z $selected ]]; then
|
||||
@ -21,7 +21,7 @@ if [[ -z $TMUX ]] && [[ -z $tmux_running ]]; then
|
||||
exit 0
|
||||
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"
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user