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 = {
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
'';
interactiveShellInit = ''
interactiveShellInit = # fish
''
# no dum greeting
set fish_greeting ""
@@ -21,7 +23,8 @@
functions = {
edit_dotfile = {
description = "Edit config file, reload, commit and push";
body = ''
body = # fish
''
set -l config_dir "$HOME/.config/home-manager"
set -l file
@@ -59,19 +62,23 @@
};
ls = {
body = "eza --long --icons --group-directories-first --git $argv";
body = # fish
"eza --long --icons --group-directories-first --git $argv";
};
lst = {
body = "eza --long --icons --color --git --tree $argv";
body = # fish
"eza --long --icons --color --git --tree $argv";
};
cp_mail = {
body = "pandoc $argv -t html |wl-copy -t text/html";
body = # fish
"pandoc $argv -t html |wl-copy -t text/html";
};
update = {
body = ''
body = # fish
''
echo "===System update==="
if not type -q yay