Compare commits

..

No commits in common. "10c415c3e5d90f462d31a669ce719b0a091001b9" and "70f4f215c07ee582329c96e33c31d02e90f5e3af" have entirely different histories.

View file

@ -1,14 +1,10 @@
{ pkgs, ... }: { ... }:
{ {
programs.bash = { programs.bash = {
enable = true; enable = true;
enableCompletion = false;
initExtra = '' initExtra = ''
if [[ ! -v BASH_COMPLETION_VERSINFO ]] && [ "''${BASH_COMPLETION_VERSINFO-}" ] || unset -v BASH_COMPLETION_VERSINFO
[[ -f "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh" ]]; then
source "${pkgs.bash-completion}/etc/profile.d/bash_completion.sh"
fi
[ "$DISPLAY" ] && xset r rate 300 60 [ "$DISPLAY" ] && xset r rate 300 60
@ -75,7 +71,7 @@ cd () {
mapfile -t lines < <(command ls --color=always --quoting-style=shell-escape -lArth) mapfile -t lines < <(command ls --color=always --quoting-style=shell-escape -lArth)
if (( ''${#lines[@]} > 10 )); then if (( ''${#lines[@]} > 10 )); then
printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 10 ))"; printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 10 ))";
printf '%s\n' "''${lines[@]: -9}" printf '%s\n' "''${lines[@]: -4}"
else else
printf '%s\n' "''${lines[@]}" printf '%s\n' "''${lines[@]}"
fi fi