update: modules/cli/fish.nix

This commit is contained in:
2026-02-23 16:35:34 +01:00
parent 7dee04d6e7
commit e55ae7e6c1

View File

@@ -3,11 +3,13 @@
{ {
programs.fish = { programs.fish = {
enable = true; enable = true;
loginShellInit = '' loginShellInit = # fish
''
fish_add_path --move --prepend --path "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin fish_add_path --move --prepend --path "$HOME/.nix-profile/bin" /nix/var/nix/profiles/default/bin /run/current-system/sw/bin
''; '';
interactiveShellInit = '' interactiveShellInit = # fish
''
# no dum greeting # no dum greeting
set fish_greeting "" set fish_greeting ""
@@ -21,7 +23,8 @@
functions = { functions = {
edit_dotfile = { edit_dotfile = {
description = "Edit config file, reload, commit and push"; description = "Edit config file, reload, commit and push";
body = '' body = # fish
''
set -l config_dir "$HOME/.config/home-manager" set -l config_dir "$HOME/.config/home-manager"
set -l file set -l file
@@ -59,19 +62,23 @@
}; };
ls = { ls = {
body = "eza --long --icons --group-directories-first --git $argv"; body = # fish
"eza --long --icons --group-directories-first --git $argv";
}; };
lst = { lst = {
body = "eza --long --icons --color --git --tree $argv"; body = # fish
"eza --long --icons --color --git --tree $argv";
}; };
cp_mail = { cp_mail = {
body = "pandoc $argv -t html |wl-copy -t text/html"; body = # fish
"pandoc $argv -t html |wl-copy -t text/html";
}; };
update = { update = {
body = '' body = # fish
''
echo "===System update===" echo "===System update==="
if not type -q yay if not type -q yay