diff options
| author | Franck Cuny <franck@fcuny.net> | 2025-01-13 17:42:32 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2025-01-13 17:42:41 -0800 |
| commit | 357c73dbb516008aacd19a878cc621ebf8a20f21 (patch) | |
| tree | 611ddf83fc65c17c5aa93d8526cf5bf193ff84af | |
| parent | Merge pull request #3 from fcuny/update_flake_lock_action (diff) | |
| download | infra-357c73dbb516008aacd19a878cc621ebf8a20f21.tar.gz | |
enable eza again and add more git aliases
| -rw-r--r-- | nix/users/fcuny/git.nix | 2 | ||||
| -rw-r--r-- | nix/users/fcuny/shell.nix | 18 |
2 files changed, 20 insertions, 0 deletions
diff --git a/nix/users/fcuny/git.nix b/nix/users/fcuny/git.nix index 608bef9..c6c01aa 100644 --- a/nix/users/fcuny/git.nix +++ b/nix/users/fcuny/git.nix @@ -23,6 +23,8 @@ co = "checkout"; br = "branch"; rb = "pull --rebase"; + hist = "log --pretty=format:\"%Cgreen%h %Creset%cd %Cblue[%cn] %Creset%s%C(yellow)%d%C(reset)\" --graph --date=relative --decorate --all"; + llog = "log --graph --name-status --pretty=format:\"%C(red)%h %C(reset)(%cd) %C(green)%an %Creset%s %C(yellow)%d%Creset\" --date=relative"; logo = "log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue (%cn)\" --decorate"; logf = "log --pretty=format:\"%C(yellow)%h%Cred%d %Creset%s%Cblue (%cn)\" --decorate --numstat"; }; diff --git a/nix/users/fcuny/shell.nix b/nix/users/fcuny/shell.nix index b415038..bcac8c6 100644 --- a/nix/users/fcuny/shell.nix +++ b/nix/users/fcuny/shell.nix @@ -51,6 +51,24 @@ in g = "git"; gap = "git add --patch"; }; + shellAliases = { + la = "eza -la --git --color=always --group-directories-first"; + ll = "eza -la -L=1 --git --color=always --group-directories-first"; + lt = "eza -aT -L=2 --git --color=always --group-directories-first"; + }; + }; + + # an alternative to ls + programs.eza = { + enable = true; + icons = "never"; + enableFishIntegration = false; + extraOptions = [ + "--group-directories-first" + "--no-quotes" + "--git-ignore" + "--icons=never" + ]; }; # an alternative to find |
