1 { pkgs, lib, config, ... }:
6 md-toc = "grep '^#\\+' --color";
8 rsync = "rsync --no-inc-recursive --info=progress2 --inplace --partial";
12 # Disable ctrl-s/ctrl-q flow control
14 vim-git () { $EDITOR $(git diff-tree --no-commit-id --name-only -r "$@"); }
15 zfs-mount () { for d in $(zfs list -rH -o name "$@"); do sudo zfs mount -l "$d"; done; }
18 programs.direnv.enableBashIntegration = true;
19 home.sessionVariables = {
20 PS1 = ''\[\033[1;32m\]\[\e]0;\u@\h: \w\a\]\W\[\033[0m\] \$(e=\$?; if [ \$e != 0 ]; then echo '\[\e[0;91m\]'\$e'\[\e[0m\]'; fi)\$ '';
22 home.file.".inputrc".text = ''
23 "\e[1~": beginning-of-line
25 "\e[7~": beginning-of-line
27 "\eOH": beginning-of-line
29 "\e[H": beginning-of-line
31 "\e[1;5C": forward-word
32 "\e[1;5D": backward-word
34 "\e[5D": backward-word
35 "\e\e[C": forward-word
36 "\e\e[D": backward-word