Browse Source

Initial commit

master
Davide Depau 2 years ago
commit
d5790a8e98
Signed by: Depau GPG Key ID: C7D999B6A55EFE86
3 changed files with 41 additions and 0 deletions
  1. +3
    -0
      .gitmodules
  2. +1
    -0
      easybashgui
  3. +37
    -0
      shcrt

+ 3
- 0
.gitmodules View File

@ -0,0 +1,3 @@
[submodule "easybashgui"]
path = easybashgui
url = https://github.com/BashGui/easybashgui.git

+ 1
- 0
easybashgui

@ -0,0 +1 @@
Subproject commit c7c6c7c1013c006feeb67ef820805d2d5029ef3e

+ 37
- 0
shcrt View File

@ -0,0 +1,37 @@
#!/bin/bash
export SHELL_LIBRARY_PATH="$SHELL_LIBRARY_PATH:./easybashgui/lib"
export PATH="$PATH:./easybashgui/src"
source easybashgui
function is_wsl {
grep -q Microsoft /proc/version
return $?
}
function win_path_to_wsl {
echo "$1" | sed '[\]|/|g'
}
function scrt_session_path {
if is_wsl; then
appdata="$(cmd.exe /C 'echo %APPDATA%')"
echo "$appdata/VanDyke/Config/Sessions"
else
echo "$HOME/.vandyke/SecureCRT/Config/Sessions"
fi
}
session_path="$(scrt_session_path)"
current_path=""
function scrt_cd {
if [ ! -d "$session_path/$current_path" ]; then
return 1
fi
current_path="$current_path/$1"
}
function scrt_ls {
return 1;
}

Loading…
Cancel
Save