From a2a752635af25aa356880b66dae984adf0e0adf3 Mon Sep 17 00:00:00 2001 From: trivernis Date: Wed, 14 Sep 2022 21:26:00 +0200 Subject: [PATCH] Add MOTD --- private_dot_config/alacritty.yml | 2 ++ private_dot_config/nushell/config.nu | 9 ++++++--- private_dot_config/nushell/motd.nu | 2 ++ 3 files changed, 10 insertions(+), 3 deletions(-) create mode 100644 private_dot_config/nushell/motd.nu diff --git a/private_dot_config/alacritty.yml b/private_dot_config/alacritty.yml index 03b5cf3..5f90321 100644 --- a/private_dot_config/alacritty.yml +++ b/private_dot_config/alacritty.yml @@ -24,3 +24,5 @@ colors: cyan: '#49fdfd' green: '#50fa7b' +shell: + program: /bin/nu diff --git a/private_dot_config/nushell/config.nu b/private_dot_config/nushell/config.nu index 3b08563..3222ff6 100644 --- a/private_dot_config/nushell/config.nu +++ b/private_dot_config/nushell/config.nu @@ -163,7 +163,7 @@ let dark_theme = { shape_external: cyan shape_externalarg: green_bold shape_literal: blue - shape_operator: yellow + shape_operator: light_magenta shape_signature: green_bold shape_string: green shape_string_interpolation: cyan_bold @@ -177,7 +177,7 @@ let dark_theme = { shape_variable: purple shape_flag: blue_bold shape_custom: green - shape_nothing: light_cyan + shape_nothing: light_magenta } let light_theme = { @@ -272,7 +272,7 @@ let-env config = { # A suffix which will be used with 'truncating' methodology # truncating_suffix: "..." } - show_banner: true # true or false to enable or disable the banner + show_banner: false # true or false to enable or disable the banner show_clickable_links_in_ls: true # true or false to enable or disable clickable links in the ls listing. your terminal has to support links. hooks: { @@ -525,3 +525,6 @@ source ~/.config/nushell/thefuck.nu # aliases source ~/.config/nushell/aliases.nu + +# motd +source ~/.config/nushell/motd.nu diff --git a/private_dot_config/nushell/motd.nu b/private_dot_config/nushell/motd.nu new file mode 100644 index 0000000..ee4632e --- /dev/null +++ b/private_dot_config/nushell/motd.nu @@ -0,0 +1,2 @@ +echo $"Hello (ansi purple_bold)($env.USER)(ansi reset), +it's the (ansi purple_bold)(date now | date format '%d.%m.%Y')(ansi reset) at (ansi purple_bold)(date now | date format '%H:%M:%S')(ansi reset)"