Compare commits
No commits in common. "10c415c3e5d90f462d31a669ce719b0a091001b9" and "70f4f215c07ee582329c96e33c31d02e90f5e3af" have entirely different histories.
10c415c3e5
...
70f4f215c0
1 changed files with 237 additions and 241 deletions
|
|
@ -1,14 +1,10 @@
|
|||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.bash = {
|
||||
enable = true;
|
||||
enableCompletion = false;
|
||||
initExtra = ''
|
||||
if [[ ! -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
|
||||
[ "''${BASH_COMPLETION_VERSINFO-}" ] || unset -v BASH_COMPLETION_VERSINFO
|
||||
|
||||
[ "$DISPLAY" ] && xset r rate 300 60
|
||||
|
||||
|
|
@ -75,7 +71,7 @@ cd () {
|
|||
mapfile -t lines < <(command ls --color=always --quoting-style=shell-escape -lArth)
|
||||
if (( ''${#lines[@]} > 10 )); then
|
||||
printf '\033[7m... %d more entries ...\033[27m\n' "$(( ''${#lines[@]} - 10 ))";
|
||||
printf '%s\n' "''${lines[@]: -9}"
|
||||
printf '%s\n' "''${lines[@]: -4}"
|
||||
else
|
||||
printf '%s\n' "''${lines[@]}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue