feat: add fish prompt nix shell indication, remove greeting, remove eza
This commit is contained in:
@@ -4,24 +4,20 @@
|
||||
pkgs.nix-your-shell
|
||||
pkgs.lolcat
|
||||
pkgs.kittysay
|
||||
pkgs.eza
|
||||
];
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellInit = ''
|
||||
set -g fish_key_bindings fish_vi_key_bindings
|
||||
|
||||
function fish_prompt
|
||||
string join ' ' -- (set_color magenta) $(prompt_pwd) :3 (set_color normal)
|
||||
if test -z $IN_NIX_SHELL
|
||||
printf '%s%s λ %s' (set_color magenta) $(prompt_pwd) (set_color normal)
|
||||
else
|
||||
printf '%s%s%s [nix-shell %s]%s λ%s ' (set_color magenta) $(prompt_pwd) (set_color yellow) $IN_NIX_SHELL (set_color magenta) (set_color normal)
|
||||
end
|
||||
end
|
||||
|
||||
function fish_greeting
|
||||
echo hii autumn :3\nthe time is $(date +%T) | kittysay | lolcat
|
||||
end
|
||||
|
||||
function ls --description "List directory contents"
|
||||
eza --icons=always $argv
|
||||
end
|
||||
|
||||
function nix-shell --description "Start an interactive shell based on a Nix expression"
|
||||
|
||||
Reference in New Issue
Block a user