From 41ed4cf73ce504fd95350d5c09722653739def5d Mon Sep 17 00:00:00 2001 From: Riley Housden Date: Tue, 1 Feb 2022 23:24:26 -0500 Subject: [PATCH] add desktop PC --- .xonshrc | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.xonshrc b/.xonshrc index 21e9ffd..2e6df89 100644 --- a/.xonshrc +++ b/.xonshrc @@ -1,8 +1,10 @@ # general shit -if $HOSTNAME != "riley-laptop": - $PROMPT = '{RED} <> {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) ' -else: +if $HOSTNAME == "riley-laptop": $PROMPT = '{RED} <3 {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) ' +elif $HOSTNAME == "riley-server": + $PROMPT = '{RED} <> {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) ' +elif $HOSTNAME == "riley-desktop": + $PROMPT = '{RED} >< {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) ' $XONSH_COLOR_STYLE = 'default' xontrib load argcomplete autovox jedi z bashisms @@ -167,6 +169,11 @@ aliases.update({ 'l': '/home/riley/programs/light_controller/main.py' }) +if in_wsl(): + aliases.update({ + 'wh': "cd /mnt/c/Users/Riley" + }) + # man page colors :O $LESS_TERMCAP_mb = "\033[01;31m" # begin blinking $LESS_TERMCAP_md = "\033[01;31m" # begin bold