34 lines
734 B
Nix
34 lines
734 B
Nix
{ 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
|