From 652c3a36ae198fea52a702d743bb745630dc0495 Mon Sep 17 00:00:00 2001 From: "Jip J. Dekker" Date: Tue, 20 Sep 2022 09:31:37 +1000 Subject: [PATCH] Switch current editor to VSCode --- dot_config/bat/config | 4 ++-- dot_config/chezmoi/chezmoi.toml | 3 +++ dot_config/xonsh/rc.d/env.xsh | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 dot_config/chezmoi/chezmoi.toml diff --git a/dot_config/bat/config b/dot_config/bat/config index 2899d7b..915ba3d 100644 --- a/dot_config/bat/config +++ b/dot_config/bat/config @@ -1,2 +1,2 @@ -# Use simple ansi theme for bat ---theme="ansi" +# Use github theme for bat +--theme="GitHub" diff --git a/dot_config/chezmoi/chezmoi.toml b/dot_config/chezmoi/chezmoi.toml new file mode 100644 index 0000000..ac54740 --- /dev/null +++ b/dot_config/chezmoi/chezmoi.toml @@ -0,0 +1,3 @@ +[edit] + command = "code" + args = ["--wait"] \ No newline at end of file diff --git a/dot_config/xonsh/rc.d/env.xsh b/dot_config/xonsh/rc.d/env.xsh index ec7dba4..8410d92 100644 --- a/dot_config/xonsh/rc.d/env.xsh +++ b/dot_config/xonsh/rc.d/env.xsh @@ -26,12 +26,12 @@ $PATH = [ $AUTO_CD = True #> Default Editor $EDITOR = "nvim" -$VISUAL = "subl" +$VISUAL = "code" #> Monash Cluster $OPTCLUSTER = "compute.optimisation-2020.cloud.edu.au" #> CMake settings $CMAKE_EXPORT_COMPILE_COMMANDS = "1" # output compile-commands.json for clangd -$CMAKE_GENERATOR = "Sublime Text 2 - Ninja" # use Ninja generator by default +$CMAKE_GENERATOR = "Ninja Multi-Config" # use Ninja generator by default #> FZF $FZF_DEFAULT_COMMAND = "fd --type f" @@ -41,9 +41,9 @@ def _theme(args): """This command takes a """ DARK_XONSH_STYLE = "stata-dark" - DARK_KITTY_STYLE = "Mariana" + DARK_KITTY_STYLE = "GitHub Dark" LIGHT_XONSH_STYLE = "stata-light" - LIGHT_KITTY_STYLE = "Breakers" + LIGHT_KITTY_STYLE = "GitHub Light" if len(args) == 0 or args[0] == "info": print("dark" if $XONSH_COLOR_STYLE == DARK_XONSH_STYLE else "light") elif args[0] == "set":