From 67d7b0a9f690b2901cd6f7839ff06c93c55ec972 Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 9 Jul 2023 18:26:37 +0100 Subject: [PATCH] modified: clear --- alias.fish | 2 ++ config.fish | 7 +++++++ other.fish | 2 +- 3 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 alias.fish diff --git a/alias.fish b/alias.fish new file mode 100644 index 0000000..31d4b7e --- /dev/null +++ b/alias.fish @@ -0,0 +1,2 @@ +alias cclear /run/current-system/sw/bin/clear +alias clear "cclear && hyfetch" diff --git a/config.fish b/config.fish index acdcd0e..ad369a7 100644 --- a/config.fish +++ b/config.fish @@ -79,6 +79,7 @@ end source ~/.config/fish/completions/bun.fish source ~/.config/fish/completions/nvm.fish source ~/.config/fish/other.fish +source ~/.config/fish/alias.fish # pnpm set -gx PNPM_HOME "/home/andr3/.local/share/pnpm" @@ -93,3 +94,9 @@ alias nshell "nix-shell --run fish" # opam configuration source /home/andr3/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true + +if ! test $NOT_SAFE + if ! test -n "$IN_NIX_SHELL" + hyfetch + end +end diff --git a/other.fish b/other.fish index dc54cdb..6b76737 100644 --- a/other.fish +++ b/other.fish @@ -13,7 +13,7 @@ end function n14 export NIXPKGS_ALLOW_INSECURE 1 - NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_14 yarn nodePackages.eslint nodePackages.svelte-language-server nodePackages.npm $argv + NIXPKGS_ALLOW_INSECURE=1 nixsh nodejs-slim_14 yarn nodePackages.svelte-language-server nodePackages.npm $argv end alias n14dev="n14 --run 'pnpm dev'"