features/aliases: deduplicated aliases across several files.

This commit is contained in:
2026-10-19 16:33:03 -04:00
parent ef423a6de0
commit 0dc69ec7b6
6 changed files with 42 additions and 56 deletions
+33
View File
@@ -0,0 +1,33 @@
{ pkgs }:
let
ff =
if pkgs.stdenv.hostPlatform.isDarwin then "clear;fastfetch" else "clear;fastfetch --logo nixos2";
ffw =
if pkgs.stdenv.hostPlatform.isDarwin then
"clear;fastfetch;printf '\n';weather kmco"
else
"clear;fastfetch --logo nixos2;printf '\n';weather kmco";
linuxAliases =
if pkgs.stdenv.hostPlatform.isLinux then
{
nb = "nix-build";
nix-rebuild = "sudo nixos-rebuild switch";
}
else
{ };
in
{
l = "ls -alh";
ll = "ls -l";
ls = "ls --color=tty";
gs = "git status";
ga = "git add";
gc = "git commit -m";
gpll = "git pull";
gpsh = "git push";
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
inherit ff ffw;
}
// linuxAliases