From c94ed04941a16e6028658bfdc1d678b3b56b6be1 Mon Sep 17 00:00:00 2001 From: key Date: Wed, 27 Oct 2021 11:20:14 +0200 Subject: [PATCH] Added the forgotten & and the end of commands to lunch it detached --- linuxSetup/init.vim | 3 ++- wsl/windowsTools/goto.sh | 13 +++++++++---- wsl/windowsTools/mail.sh | 9 ++++++--- wsl/windowsTools/onenote.sh | 7 ++++--- wsl/windowsTools/windowsOpen.sh | 13 ++++++++++++- 5 files changed, 33 insertions(+), 12 deletions(-) diff --git a/linuxSetup/init.vim b/linuxSetup/init.vim index bee538f..ec455ef 100644 --- a/linuxSetup/init.vim +++ b/linuxSetup/init.vim @@ -35,7 +35,7 @@ Plug 'arcticicestudio/nord-vim' Plug 'vim-utils/vim-man' Plug 'mbbill/undotree' Plug 'gyim/vim-boxdraw' - +Plug 'vim-airline/vim-airline' ""Plug 'theprimeagen/vim-be-good' call plug#end() "-------------------------------------------------------------------- @@ -70,6 +70,7 @@ noremap tc :Cont map pv :Sex! :vertical resize 30 map ,/ :s/^/\/\// map ,{ :s/);/)\r{\r\t\r}\r/g +map ra ebvey :%s/0/ "-------------------------------------------------------------------- "WILDMENU FOR FUZZY FILE SEARCH-------------------------------------- diff --git a/wsl/windowsTools/goto.sh b/wsl/windowsTools/goto.sh index c078776..e31d125 100755 --- a/wsl/windowsTools/goto.sh +++ b/wsl/windowsTools/goto.sh @@ -23,7 +23,8 @@ goto_client () if [ -z "$CMD_2" ] then cd "$CLIENT_PATH" - explorer.exe . + explorer.exe . & + exit elif [ "$CMD_2" == "list" ] then cd "$CLIENT_PATH" @@ -33,7 +34,8 @@ goto_client () if [ -d "$CLIENT_PATH_TOGO" ] then cd "$CLIENT_PATH_TOGO" - explorer.exe . + explorer.exe . & + exit else cd "$CLIENT_PATH" echo "Client not found" @@ -48,7 +50,7 @@ goto_manufacturer () if [ -z "$CMD_2" ] then cd "$MAN_PATH" - explorer.exe . + explorer.exe . & elif [ "$CMD_2" == "list" ] then cd "$MAN_PATH" @@ -58,7 +60,8 @@ goto_manufacturer () if [ -d "$MAN_PATH_TOGO" ] then cd "$MAN_PATH_TOGO" - explorer.exe . + explorer.exe . & + exit else cd "$MAN_PATH" echo "Manufacturer not found" @@ -73,6 +76,7 @@ check_command () if [ -z "$CMD_1" ] then echo no argument was given + exit elif [ "$CMD_1" == "cli" ] then goto_client @@ -85,3 +89,4 @@ check_command () } check_command +exit diff --git a/wsl/windowsTools/mail.sh b/wsl/windowsTools/mail.sh index 5e6213d..dea0c03 100755 --- a/wsl/windowsTools/mail.sh +++ b/wsl/windowsTools/mail.sh @@ -23,12 +23,14 @@ OTLK_SENT="Gesendete Elemente" goto_folder () { - exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$TO_OPEN + exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$TO_OPEN & + exit } goto_calendar () { - exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$CALENDAR + exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$CALENDAR & + exit } command_translator () @@ -56,6 +58,7 @@ check_command () if [ -z "$CMD_1" ] then echo no argument was given + exit elif [ "$CMD_1" == "cal" ] then goto_calendar @@ -66,10 +69,10 @@ check_command () goto_folder else command_translator - TO_OPEN=$TO_OPEN/$CMD_2 goto_folder fi fi + exit } check_command diff --git a/wsl/windowsTools/onenote.sh b/wsl/windowsTools/onenote.sh index 248ed1a..ea7765f 100755 --- a/wsl/windowsTools/onenote.sh +++ b/wsl/windowsTools/onenote.sh @@ -32,13 +32,12 @@ goto_folder () if [ "$item" == "$CMD_1" ] then echo Will open : ${arr_links[$index]} - exec "$ONENOTE_EXE" $ONENOTE_CMD ${arr_links[$index]} + exec "$ONENOTE_EXE" $ONENOTE_CMD ${arr_links[$index]} & fi ((index=index + 1)) done done echo Comman not found : $CMD_1 - exit } @@ -59,7 +58,7 @@ goto_direct () fi echo Will open : $ONENOTE_DIR/$ONENOTE_SUB_DIR/$CMD_2.one - exec "$ONENOTE_EXE" $ONENOTE_CMD $ONENOTE_DIR/$ONENOTE_SUB_DIR/$CMD_2.one + exec "$ONENOTE_EXE" $ONENOTE_CMD $ONENOTE_DIR/$ONENOTE_SUB_DIR/$CMD_2.one & } check_command () @@ -67,6 +66,7 @@ check_command () if [ -z "$CMD_1" ] then echo no argument was given + exit else if [ -z "$CMD_2" ] then @@ -78,3 +78,4 @@ check_command () } check_command +exit diff --git a/wsl/windowsTools/windowsOpen.sh b/wsl/windowsTools/windowsOpen.sh index 31d3b10..d3cf215 100755 --- a/wsl/windowsTools/windowsOpen.sh +++ b/wsl/windowsTools/windowsOpen.sh @@ -10,10 +10,20 @@ check_command () if [ -z "$CMD_1" ] then echo no argument was given + exit else if [ "$CMD_1" == "deepl" ] then - exec "$EDGE_EXE" \"\" www.deepl.com + exec "$EDGE_EXE" www.deepl.com & + exit + elif [ "$CMD_1" == "draw" ] + then + exec "$EDGE_EXE" www.draw.io & + exit + elif [ "$CMD_1" == "citrix" ] + then + exec "$EDGE_EXE" https://unityapps.arrow.com/Citrix/StoreWeb/ & + exit else echo "Command not found : $CMD_1" fi @@ -21,3 +31,4 @@ check_command () } check_command +exit