From b92b00705032163c081dbfc87246b241baa89ff7 Mon Sep 17 00:00:00 2001 From: atagen Date: Mon, 21 Jul 2025 13:51:35 +1000 Subject: [PATCH] fix up fish aliases/abbrs --- common/terminal.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/common/terminal.nix b/common/terminal.nix index fc1a6a1..b15b6b0 100644 --- a/common/terminal.nix +++ b/common/terminal.nix @@ -1,11 +1,9 @@ { pkgs, inputs, - config, ... }: let - inherit (config) rice; inherit (pkgs) fish; in { @@ -26,10 +24,19 @@ in "gap" = "git commit -a --amend --no-edit && git push --force"; "gl" = "git pull"; "ga" = "git add"; - "l" = "eza -lg --icons=always --colour=always | culr"; - "la" = "eza -lg --icons=always --colour=always | culr"; + "gcam" = "git commit -am"; + }; + shellAliases = { + "l" = "eza -lg --icons=always --colour=always $argv | culr"; + "la" = "eza -lg --icons=always --colour=always $argv | culr"; + "p" = "ps $argv | culr"; + "mnt" = "mount | culr"; }; interactiveShellInit = '' + function fish_title + set -q argv[1]; or set argv fish + echo (fish_prompt_pwd_dir_length=100 prompt_pwd): $argv; + end ${./rice/header.sh} ''; };