add global shell aliases

This commit is contained in:
Osman Faruk Bayram 2025-11-05 14:51:36 +03:00
parent 892b368c3a
commit 93c243b0d3
2 changed files with 11 additions and 10 deletions

View file

@ -13,6 +13,17 @@
EDITOR = lib.mkDefault "nvim";
};
home.shellAliases = {
c = "code .";
l = "eza --all --long --git --icons --group --sort size --header --group-directories-first";
ll = "eza --all --long --git --icons --group --sort name --header --group-directories-first";
free = "free -h";
df = "df -h";
du = "du -h";
lg = "lazygit";
onefetch = "onefetch -T prose -T programming -T data";
};
# Don't set stateVersion here - let it be set by the system configuration
# home.stateVersion should be set in the system's home-manager configuration

View file

@ -4,16 +4,6 @@
interactiveShellInit = ''
set -g fish_greeting
'';
shellAliases = {
c = "code .";
l = "eza --all --long --git --icons --group --sort size --header --group-directories-first";
ll = "eza --all --long --git --icons --group --sort name --header --group-directories-first";
free = "free -h";
df = "df -h";
du = "du -h";
lg = "lazygit";
onefetch = "onefetch -T prose -T programming -T data";
};
functions = {
gitu = ''
git add --all