Added the forgotten & and the end of commands to lunch it detached

master
key 4 years ago
parent 2863f1a46e
commit c94ed04941

@ -35,7 +35,7 @@ Plug 'arcticicestudio/nord-vim'
Plug 'vim-utils/vim-man' Plug 'vim-utils/vim-man'
Plug 'mbbill/undotree' Plug 'mbbill/undotree'
Plug 'gyim/vim-boxdraw' Plug 'gyim/vim-boxdraw'
Plug 'vim-airline/vim-airline'
""Plug 'theprimeagen/vim-be-good' ""Plug 'theprimeagen/vim-be-good'
call plug#end() call plug#end()
"-------------------------------------------------------------------- "--------------------------------------------------------------------
@ -70,6 +70,7 @@ noremap <silent> <leader>tc :Cont<cr>
map <leader>pv :Sex! <bar> :vertical resize 30<CR> map <leader>pv :Sex! <bar> :vertical resize 30<CR>
map ,/ :s/^/\/\//<CR> map ,/ :s/^/\/\//<CR>
map ,{ :s/);/)\r{\r\t\r}\r/g<CR> map ,{ :s/);/)\r{\r\t\r}\r/g<CR>
map <leader>ra ebvey :%s/<C-R>0/
"-------------------------------------------------------------------- "--------------------------------------------------------------------
"WILDMENU FOR FUZZY FILE SEARCH-------------------------------------- "WILDMENU FOR FUZZY FILE SEARCH--------------------------------------

@ -23,7 +23,8 @@ goto_client ()
if [ -z "$CMD_2" ] if [ -z "$CMD_2" ]
then then
cd "$CLIENT_PATH" cd "$CLIENT_PATH"
explorer.exe . explorer.exe . &
exit
elif [ "$CMD_2" == "list" ] elif [ "$CMD_2" == "list" ]
then then
cd "$CLIENT_PATH" cd "$CLIENT_PATH"
@ -33,7 +34,8 @@ goto_client ()
if [ -d "$CLIENT_PATH_TOGO" ] if [ -d "$CLIENT_PATH_TOGO" ]
then then
cd "$CLIENT_PATH_TOGO" cd "$CLIENT_PATH_TOGO"
explorer.exe . explorer.exe . &
exit
else else
cd "$CLIENT_PATH" cd "$CLIENT_PATH"
echo "Client not found" echo "Client not found"
@ -48,7 +50,7 @@ goto_manufacturer ()
if [ -z "$CMD_2" ] if [ -z "$CMD_2" ]
then then
cd "$MAN_PATH" cd "$MAN_PATH"
explorer.exe . explorer.exe . &
elif [ "$CMD_2" == "list" ] elif [ "$CMD_2" == "list" ]
then then
cd "$MAN_PATH" cd "$MAN_PATH"
@ -58,7 +60,8 @@ goto_manufacturer ()
if [ -d "$MAN_PATH_TOGO" ] if [ -d "$MAN_PATH_TOGO" ]
then then
cd "$MAN_PATH_TOGO" cd "$MAN_PATH_TOGO"
explorer.exe . explorer.exe . &
exit
else else
cd "$MAN_PATH" cd "$MAN_PATH"
echo "Manufacturer not found" echo "Manufacturer not found"
@ -73,6 +76,7 @@ check_command ()
if [ -z "$CMD_1" ] if [ -z "$CMD_1" ]
then then
echo no argument was given echo no argument was given
exit
elif [ "$CMD_1" == "cli" ] elif [ "$CMD_1" == "cli" ]
then then
goto_client goto_client
@ -85,3 +89,4 @@ check_command ()
} }
check_command check_command
exit

@ -23,12 +23,14 @@ OTLK_SENT="Gesendete Elemente"
goto_folder () goto_folder ()
{ {
exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$TO_OPEN exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$TO_OPEN &
exit
} }
goto_calendar () goto_calendar ()
{ {
exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$CALENDAR exec "$OUTLOOK_EXE" $OULOOK_CMD $INBOX:$CALENDAR &
exit
} }
command_translator () command_translator ()
@ -56,6 +58,7 @@ check_command ()
if [ -z "$CMD_1" ] if [ -z "$CMD_1" ]
then then
echo no argument was given echo no argument was given
exit
elif [ "$CMD_1" == "cal" ] elif [ "$CMD_1" == "cal" ]
then then
goto_calendar goto_calendar
@ -66,10 +69,10 @@ check_command ()
goto_folder goto_folder
else else
command_translator command_translator
TO_OPEN=$TO_OPEN/$CMD_2
goto_folder goto_folder
fi fi
fi fi
exit
} }
check_command check_command

@ -32,13 +32,12 @@ goto_folder ()
if [ "$item" == "$CMD_1" ] if [ "$item" == "$CMD_1" ]
then then
echo Will open : ${arr_links[$index]} echo Will open : ${arr_links[$index]}
exec "$ONENOTE_EXE" $ONENOTE_CMD ${arr_links[$index]} exec "$ONENOTE_EXE" $ONENOTE_CMD ${arr_links[$index]} &
fi fi
((index=index + 1)) ((index=index + 1))
done done
done done
echo Comman not found : $CMD_1 echo Comman not found : $CMD_1
exit
} }
@ -59,7 +58,7 @@ goto_direct ()
fi fi
echo Will open : $ONENOTE_DIR/$ONENOTE_SUB_DIR/$CMD_2.one 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 () check_command ()
@ -67,6 +66,7 @@ check_command ()
if [ -z "$CMD_1" ] if [ -z "$CMD_1" ]
then then
echo no argument was given echo no argument was given
exit
else else
if [ -z "$CMD_2" ] if [ -z "$CMD_2" ]
then then
@ -78,3 +78,4 @@ check_command ()
} }
check_command check_command
exit

@ -10,10 +10,20 @@ check_command ()
if [ -z "$CMD_1" ] if [ -z "$CMD_1" ]
then then
echo no argument was given echo no argument was given
exit
else else
if [ "$CMD_1" == "deepl" ] if [ "$CMD_1" == "deepl" ]
then 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 else
echo "Command not found : $CMD_1" echo "Command not found : $CMD_1"
fi fi
@ -21,3 +31,4 @@ check_command ()
} }
check_command check_command
exit

Loading…
Cancel
Save