diff --git a/.xonshrc b/.xonshrc index 86c71dd..e696130 100644 --- a/.xonshrc +++ b/.xonshrc @@ -25,6 +25,9 @@ append_path("~/.local/bin") append_path("~/bin") append_path("~/go/bin") +if in_win(): + append_path("F:/programs/installed/micro") + # tmux try: requires("tmux") @@ -42,4 +45,4 @@ $LESS_TERMCAP_me = "\033[0m" # end mode $LESS_TERMCAP_so = "\033[01;44;36m" # begin standout-mode (bottom of screen) $LESS_TERMCAP_se = "\033[0m" # end standout-mode -load_aliases() \ No newline at end of file +load_aliases() diff --git a/functions.xsh b/functions.xsh index 713175e..41c9a89 100644 --- a/functions.xsh +++ b/functions.xsh @@ -12,7 +12,8 @@ def in_wsl() -> bool: def in_win() -> bool: """Determines if the system is running inside a Windows environment.""" - if ${'OS'} == "Windows_NT": + import os + if 'OS' in os.environ and os.environ['OS'] == "Windows_NT": return True return False