dots/.xonshrc

45 lines
1.2 KiB
Text
Raw Normal View History

2021-09-23 01:38:18 +00:00
# general shit
2022-02-02 04:24:26 +00:00
if $HOSTNAME == "riley-laptop":
2021-11-08 20:44:55 +00:00
$PROMPT = '{RED} <3 {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) '
2022-02-02 04:24:26 +00:00
elif $HOSTNAME == "riley-server":
$PROMPT = '{RED} <> {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) '
elif $HOSTNAME == "riley-desktop":
$PROMPT = '{RED} >< {RESET}| {BOLD_GREEN}{cwd_base}{RESET} ) '
2021-09-25 19:08:51 +00:00
$XONSH_COLOR_STYLE = 'default'
xontrib load argcomplete autovox jedi z bashisms
2022-02-08 05:05:06 +00:00
source "functions.xsh"
source "exceptions.xsh"
source "aliases.xsh"
2022-02-08 05:05:06 +00:00
# TODO: Fix with Arch-based distros
# import addins # my extra stuffs :p
2022-01-27 07:26:41 +00:00
2022-02-08 05:05:06 +00:00
# Windows Subsystem for Linux stuff
2022-01-27 07:26:41 +00:00
if in_wsl():
2022-02-08 05:05:06 +00:00
$GPG_TTY=$(tty) # allows gpg to work inside WSL
2021-09-22 03:46:08 +00:00
2021-09-22 07:52:45 +00:00
# path stuff
2022-02-08 05:05:06 +00:00
append_path("~/addins")
append_path("~/.local/bin")
append_path("~/bin")
append_path("~/go/bin")
2021-09-23 01:38:18 +00:00
# tmux
try:
requires("tmux")
if $TERM != 'tmux-256color':
folder = p'.'
tmux -2 new-session -A -s @(folder.resolve().name)
exit
except CommandNotFoundException:
pass
2021-09-22 07:52:45 +00:00
2021-09-23 01:38:18 +00:00
# man page colors :O
$LESS_TERMCAP_mb = "\033[01;31m" # begin blinking
$LESS_TERMCAP_md = "\033[01;31m" # begin bold
$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
2021-09-25 19:08:51 +00:00
2022-02-08 05:05:06 +00:00
load_aliases()