features/aliases: deduplicated aliases across several files.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user