From 85f8b320c487bf48fe197d41146c42eb7546c2a7 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Thu, 11 Jan 2024 01:48:54 +0300 Subject: [PATCH] console: starship symbols & disable vi bindings in vterm --- .config/fish/config.fish | 6 +++++- .config/starship.toml | 4 ++-- Console.org | 10 +++++++--- 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 4822410..b3a5004 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -10,7 +10,11 @@ end # Fish:1 ends here # [[file:../../Console.org::*Fish][Fish:2]] -fish_vi_key_bindings +if [ "$IS_VTERM" != "1" ]; + fish_vi_key_bindings +else + fish_default_key_bindings +end alias q="exit" alias c="clear" diff --git a/.config/starship.toml b/.config/starship.toml index 09aa20e..66f03ee 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -1,7 +1,7 @@ # [[file:../Console.org::*Starship prompt][Starship prompt:1]] [character] -success_symbol = "[➤ ](bold green)" -error_symbol = "[ ](bold red)" +success_symbol = "[> ](bold green)" +error_symbol = "[✕ ](bold red)" vicmd_symbol = "[ᐊ ](bold green)" [aws] diff --git a/Console.org b/Console.org index 0618c3b..a3af5a1 100644 --- a/Console.org +++ b/Console.org @@ -495,7 +495,11 @@ end Enable vi keybindings & aliases. The alias syntax is the same as in bash, so it's just a noweb reference to =.bashrc=. #+begin_src fish :noweb yes -fish_vi_key_bindings +if [ "$IS_VTERM" != "1" ]; + fish_vi_key_bindings +else + fish_default_key_bindings +end alias q="exit" alias c="clear" @@ -602,8 +606,8 @@ References: #+begin_src conf-toml :tangle ./.config/starship.toml [character] -success_symbol = "[➤ ](bold green)" -error_symbol = "[ ](bold red)" +success_symbol = "[> ](bold green)" +error_symbol = "[✕ ](bold red)" vicmd_symbol = "[ᐊ ](bold green)" [aws]