raised histsize and added mpv playlist aliases

This commit is contained in:
mc-fucker 2025-11-27 13:21:22 +01:00
parent d79e8f79c2
commit 81e890af21

View file

@ -12,6 +12,7 @@ with import <nixpkgs> {};
} }
''; '';
promptInit = ""; # otherwise it'll override the grml prompt promptInit = ""; # otherwise it'll override the grml prompt
histSize = 500000;
syntaxHighlighting = { syntaxHighlighting = {
enable = true; enable = true;
highlighters = [ "main" "pattern" "brackets" ]; highlighters = [ "main" "pattern" "brackets" ];
@ -31,6 +32,8 @@ with import <nixpkgs> {};
"nsu" = "nixos-rebuild switch --upgrade"; "nsu" = "nixos-rebuild switch --upgrade";
"dfr" = "df -h | head -n +1; df -h -x overlay -x tmpfs | tail -n +2 | sort -nrk5"; "dfr" = "df -h | head -n +1; df -h -x overlay -x tmpfs | tail -n +2 | sort -nrk5";
"d" = ''du -ahx "$PWD" --exclude=/proc| sort -rh 2>/dev/null |head -40 | sort -rh 2>/dev/null''; "d" = ''du -ahx "$PWD" --exclude=/proc| sort -rh 2>/dev/null |head -40 | sort -rh 2>/dev/null'';
"bigplay" = ''PL="" ; find -type f -not -iname "*.jpg" -not -iname "*.par2" -exec du {} \; | sort -nr | sed "s/[0-9 \t]*//" | while read -r src; do PL="$(echo $PL; realpath "$src")" ; done; mpv --playlist=<(echo "$PL")'';
"randplay" = ''PL=""; find -type f | grep -Fvi ".jpg" | grep -Fvi ".par2" | sort -R | while read -r src; do PL="$(echo $PL; realpath "$src")" ; done; mpv --playlist=<(echo "$PL")'';
}; };
} }
# vim: set et ts=2 sw=2 ai: # vim: set et ts=2 sw=2 ai: