home/shell: remove and update a few aliases
This commit is contained in:
parent
f85724dea0
commit
92eb44e7ad
|
@ -8,10 +8,11 @@
|
||||||
colorRed = sedColor 1;
|
colorRed = sedColor 1;
|
||||||
|
|
||||||
colorSlashes = colorRed "/" { middle = "/"; };
|
colorSlashes = colorRed "/" { middle = "/"; };
|
||||||
in {
|
|
||||||
local.shell.aliases = let
|
|
||||||
p = pkg: "${pkgs.${pkg}}/bin/${pkg}";
|
p = pkg: "${pkgs.${pkg}}/bin/${pkg}";
|
||||||
in {
|
in {
|
||||||
|
local.shell.aliases = {
|
||||||
|
|
||||||
# ░█▀▄░█▀▀░█▀█░█░░░█▀█░█▀▀░█▀▀░█▄█░█▀▀░█▀█░▀█▀░█▀▀
|
# ░█▀▄░█▀▀░█▀█░█░░░█▀█░█▀▀░█▀▀░█▄█░█▀▀░█▀█░▀█▀░█▀▀
|
||||||
# ░█▀▄░█▀▀░█▀▀░█░░░█▀█░█░░░█▀▀░█░█░█▀▀░█░█░░█░░▀▀█
|
# ░█▀▄░█▀▀░█▀▀░█░░░█▀█░█░░░█▀▀░█░█░█▀▀░█░█░░█░░▀▀█
|
||||||
# ░▀░▀░▀▀▀░▀░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀░▀░░▀░░▀▀▀
|
# ░▀░▀░▀▀▀░▀░░░▀▀▀░▀░▀░▀▀▀░▀▀▀░▀░▀░▀▀▀░▀░▀░░▀░░▀▀▀
|
||||||
|
@ -25,7 +26,7 @@ in {
|
||||||
#
|
#
|
||||||
# Example: cp -> ccp
|
# Example: cp -> ccp
|
||||||
|
|
||||||
cd = "z";
|
cd = lib.mkIf config.programs.zoxide.enable "z";
|
||||||
|
|
||||||
ccp = "${pkgs.coreutils}/bin/cp";
|
ccp = "${pkgs.coreutils}/bin/cp";
|
||||||
cp = "${p "rsync"} --progress --human-readable";
|
cp = "${p "rsync"} --progress --human-readable";
|
||||||
|
@ -50,7 +51,13 @@ in {
|
||||||
la = "${p "exa"} -lah --changed --time-style long-iso --git --group";
|
la = "${p "exa"} -lah --changed --time-style long-iso --git --group";
|
||||||
lsa = "la";
|
lsa = "la";
|
||||||
|
|
||||||
killall = "echo \"killall is dangerous on non-gnu platforms. Using 'pkill -x'\"; pkill -x";
|
killall = {
|
||||||
|
type = ";";
|
||||||
|
alias = [
|
||||||
|
''echo "killall is dangerous on non-gnu platforms. Using 'pkill -x'"''
|
||||||
|
"pkill -x"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# ░█▀▀░█▀█░█░░░█▀█░█▀▄░▀█▀░▀▀█░█▀▀░█▀▄
|
# ░█▀▀░█▀█░█░░░█▀█░█▀▄░▀█▀░▀▀█░█▀▀░█▀▄
|
||||||
|
@ -67,16 +74,6 @@ in {
|
||||||
# make = "${colormake}/bin/colormake";
|
# make = "${colormake}/bin/colormake";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ░█▀▄░█▀▀░█▄█░▀█▀░█▀█░█▀▄░█▀▀░█▀▄░█▀▀
|
|
||||||
# ░█▀▄░█▀▀░█░█░░█░░█░█░█░█░█▀▀░█▀▄░▀▀█
|
|
||||||
# ░▀░▀░▀▀▀░▀░▀░▀▀▀░▀░▀░▀▀░░▀▀▀░▀░▀░▀▀▀
|
|
||||||
|
|
||||||
# Stuff that I constantly forget...
|
|
||||||
|
|
||||||
"Reminders" = {
|
|
||||||
regex-escapechars = "echo \"[\\^$.|?*+()\"";
|
|
||||||
};
|
|
||||||
|
|
||||||
# ░█▀█░▀█▀░█░█
|
# ░█▀█░▀█▀░█░█
|
||||||
# ░█░█░░█░░▄▀▄
|
# ░█░█░░█░░▄▀▄
|
||||||
# ░▀░▀░▀▀▀░▀░▀
|
# ░▀░▀░▀▀▀░▀░▀
|
||||||
|
@ -106,7 +103,7 @@ in {
|
||||||
scs = "systemctl status";
|
scs = "systemctl status";
|
||||||
scc = "systemctl cat";
|
scc = "systemctl cat";
|
||||||
scf = "systemctl list-units --failed";
|
scf = "systemctl list-units --failed";
|
||||||
jx = "journalctl -xeu";
|
je = "journalctl -eu";
|
||||||
};
|
};
|
||||||
|
|
||||||
# ░█▀▀░█▀█░█▀▀░▀█▀░█░█░█▀█░█▀▄░█▀▀
|
# ░█▀▀░█▀█░█▀▀░▀█▀░█░█░█▀█░█▀▄░█▀▀
|
||||||
|
@ -125,7 +122,7 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
dp-check = {
|
dp-check = lib.mkIf config.services.dropbox.enable {
|
||||||
type = "|";
|
type = "|";
|
||||||
alias = [
|
alias = [
|
||||||
"ls -l /proc/$(pidof dropbox)/fd"
|
"ls -l /proc/$(pidof dropbox)/fd"
|
||||||
|
@ -157,9 +154,14 @@ in {
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
path = ''echo $PATH | sed -e 's/:/\n/g' ${colorSlashes} | sort'';
|
path = {
|
||||||
|
type = "|";
|
||||||
wowify = "${p "toilet"} -f pagga | ${p "lolcat"}";
|
alias = [
|
||||||
|
"echo $PATH"
|
||||||
|
"sed -e 's/:/\n/g' ${colorSlashes}"
|
||||||
|
"sort"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
aliasc = let
|
aliasc = let
|
||||||
colorAliasNames = colorRed "\\(^[^=]*\\)=" { middle = "\\1"; after = "\\t"; };
|
colorAliasNames = colorRed "\\(^[^=]*\\)=" { middle = "\\1"; after = "\\t"; };
|
||||||
|
|
Loading…
Reference in New Issue