This commit is contained in:
DeveloperDurp 2025-04-24 10:40:42 -05:00
parent 7fe922bcee
commit cfb63db1ad
7 changed files with 65 additions and 42 deletions

View file

@ -32,7 +32,14 @@ goland-new() {
[ -z "${dir}" ] && dir=$(find $HOME/Documents/gitlab -mindepth 2 -maxdepth 2 -type d | awk -F/ '{print $(NF-1)"/"$NF " " $0}' | fzf --reverse --header "New Session" --with-nth=1 | awk '{print $2}')
[ -z "$dir" ] && return 1
sleep 1 && goland $dir &
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/apps/goland/bin/goland $dir &
elif [[ $dir == *'devops'* ]]; then
/home/user/.local/share/JetBrains/Toolbox/apps/goland/bin/goland $dir &
fi
#sleep 1 && /home/user/.local/share/JetBrains/Toolbox/apps/goland/bin/goland $dir &
}
switch() {