The general configuration of my development environment and many other general computer things.

Add xonsh configuration as a trial

+64 -2
+1 -1
dot_config/kitty/kitty.conf
··· 9 9 10 10 confirm_os_window_close 0 11 11 12 - shell nu 12 + shell xonsh 13 13 14 14 # BEGIN_KITTY_THEME 15 15 include current-theme.conf
+53
dot_config/xonsh/rc.d/env.xsh
··· 1 + # --- Detect Environment --- 2 + 3 + try: 4 + import warnings 5 + with warnings.catch_warnings(): 6 + warnings.simplefilter("ignore") 7 + import darkdetect 8 + 9 + dark_mode = darkdetect.isDark() 10 + except ImportError: 11 + dark_mode = False 12 + 13 + brew_prefix = $(brew --prefix).strip() 14 + 15 + # --- Xonsh Configuration --- 16 + 17 + $XONSH_COLOR_STYLE = "stata-dark" if dark_mode else "stata-light" 18 + 19 + # --- Path Variables --- 20 + #> Use MacOS path_helper executable 21 + source-bash $(/usr/libexec/path_helper -s) 22 + 23 + $PATH = [ 24 + brew_prefix + "/opt/bison/bin", 25 + brew_prefix + "/opt/flex/bin", 26 + brew_prefix + "/opt/llvm/bin", 27 + ] + $PATH + [ 28 + $HOME + "/.local/bin", 29 + $HOME + "/.cargo/bin", 30 + ] 31 + 32 + # --- General Environment --- 33 + #> Default Editor 34 + $EDITOR = "nvim" 35 + $VISUAL = "subl" 36 + #> Monash Cluster 37 + $OPTCLUSTER = "compute.optimisation-2020.cloud.edu.au" 38 + #> CMake settings 39 + $CMAKE_EXPORT_COMPILE_COMMANDS = "1" # output compile-commands.json for clangd 40 + $CMAKE_GENERATOR = "Sublime Text 2 - Ninja" # use Ninja generator by default 41 + #> FZF 42 + $FZF_DEFAULT_COMMAND = "fd --type f" 43 + 44 + # --- Aliases --- 45 + aliases["brew-backup"] = ("brew", "bundle", "dump", "--global", "--no-lock", "--cask", "--mas", "--tap", "--force") 46 + aliases["brew-cleanup"] = ("brew", "bundle", "cleanup", "--global", "--no-lock", "--force", "--zap") 47 + aliases["brew-restore"] = ("brew", "bundle", "install", "--global", "--no-lock") 48 + aliases["edit"] = $VISUAL 49 + aliases["less"] = "bat" 50 + aliases["set-dark-theme"] = ("kitty", "+kitten", "themes", "Mariana") 51 + aliases["set-light-theme"] = ("kitty", "+kitten", "themes", "Breakers") 52 + aliases["ssh"] = ("kitty", "+kitten", "ssh") 53 + aliases["start"] = "open"
+8
dot_config/xonsh/rc.d/plugins.xsh
··· 1 + #> Homebrew integration 2 + source-bash $(brew shellenv) 3 + #> Kitty integration 4 + xontrib load kitty 5 + #> Starship: smart prompt 6 + execx($(starship init xonsh)) 7 + #> Zoxide: smart cd 8 + execx($(zoxide init xonsh), 'exec', __xonsh__.ctx, filename='zoxide')
+2 -1
private_Library/private_Application Support/private_Sublime Text/private_Packages/private_User/Package Control.sublime-settings
··· 11 11 "MiniZinc Language", 12 12 "Package Control", 13 13 "Svelte", 14 + "xonsh", 14 15 ], 15 - } 16 + }