From 68c28de2c6a72d36ffd7deb71a56d24c621dbaba Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Wed, 14 Jul 2021 18:43:00 +0300 Subject: [PATCH] feat(console): add nushell --- .config/guix/channels.scm | 2 +- .config/guix/manifests/console.scm | 1 + Console.org | 50 ++++++++++++++++++++++++++++++ 3 files changed, 52 insertions(+), 1 deletion(-) diff --git a/.config/guix/channels.scm b/.config/guix/channels.scm index ea951bc..7897d9b 100644 --- a/.config/guix/channels.scm +++ b/.config/guix/channels.scm @@ -2,7 +2,7 @@ (cons* (channel (name 'channel-q) - (url "https://github.com/SqrtMinusOne/channel-q.git")) + (url "file:///home/pavel/Code/channel-q")) (channel (name 'flat) (url "https://github.com/flatwhatson/guix-channel.git") diff --git a/.config/guix/manifests/console.scm b/.config/guix/manifests/console.scm index 4bff151..4ba6627 100644 --- a/.config/guix/manifests/console.scm +++ b/.config/guix/manifests/console.scm @@ -14,6 +14,7 @@ "python-tmuxp" "tmux" "rust-starship" + "nushell-bin" "dt-colorscripts" "fish" "xhost" diff --git a/Console.org b/Console.org index b30cb05..87d52fd 100644 --- a/Console.org +++ b/Console.org @@ -31,6 +31,7 @@ - [[#anaconda][Anaconda]] - [[#starship-prompt][Starship prompt]] - [[#fish][Fish]] +- [[#nushell][Nushell]] - [[#starship-prompt][Starship prompt]] - [[#tmux][Tmux]] - [[#term-settings][Term settings]] @@ -439,6 +440,55 @@ Suppress fish greeting #+begin_src fish set fish_greeting #+end_src +* Nushell +:PROPERTIES: +:header-args+: :tangle ./.config/nu/config.toml :comments link +:END: + | Guix dependency | + |-----------------| + | nushell-bin | + +A structured shell. I don't use it as of now, but perhaps one day. + +Set starship prompt +#+begin_src conf-toml :noweb yes +startup = [ + <>, + "mkdir ~/.cache/starship", + "starship init nu | save ~/.cache/starship/init.nu", + "source ~/.cache/starship/init.nu", +] +prompt = "starship_prompt" +#+end_src + +Skip welcome message +#+begin_src conf-toml +skip_welcome_message = true +#+end_src + +Set table mode +#+begin_src conf-toml +table_mode = "rounded" +#+end_src + +Aliases +#+begin_src conf-toml :tangle no :noweb-ref nu-aliases +"alias ll = ls -l", +"alias c = clear", +"alias q = exit" +#+end_src + +Colors +#+begin_src conf-toml +[color_config] +primitive_filesize="ub" +primitive_boolean="yu" +primitive_duration="g" +primitive_path="y" +primitive_date="r" +primitive_int="c" +primitive_decimal="c" +#+end_src * Starship prompt | Guix dependency | Description | |-----------------+---------------------|