This commit is contained in:
DeveloperDurp 2026-01-19 05:16:31 -06:00
parent e59fa1b32f
commit 266b888ba9
4 changed files with 21 additions and 6 deletions

View file

@ -82,12 +82,23 @@ goland-new() {
if [[ $dir == *'dotnet'* ]]; then
/home/user/.local/share/JetBrains/Toolbox/apps/rider/bin/rider $dir &
elif [[ $dir == *'go'* ]]; then
/home/user/.local/share/JetBrains/Toolbox/scripts/goland $dir &
elif [[ $dir == *'devops'* ]]; then
/home/user/.local/share/JetBrains/Toolbox/scripts/goland $dir &
return
fi
/home/user/.local/share/JetBrains/Toolbox/scripts/goland $dir &
#sleep 1 && /home/user/.local/share/JetBrains/Toolbox/apps/goland/bin/goland $dir &
#
name=$(basename "$dir")
if [[ $name == .* ]]; then
name=${name#.}
fi
tmux has-session -t ${name} 2>/dev/null && {
tmux switch-client -t ${name}
return
}
tmux new-session -d -s "$name" -c "$dir"
}
switch() {