X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=blobdiff_plain;f=shell%2Fsetup.sh;h=e8cff62e78da7cfd79b6fc429779fd9ba12e9bd0;hp=4276b42f67eb6393730900305f9092a570e1d05f;hb=3e7a01c3a9d7c71a9e4a1981815efe54f7ed282e;hpb=4b330f390e94e31f406cfaaad8e3397ebc3f89de diff --git a/shell/setup.sh b/shell/setup.sh index 4276b42..e8cff62 100755 --- a/shell/setup.sh +++ b/shell/setup.sh @@ -67,9 +67,14 @@ mkdir -p zsh/cache # file in this directory; this requires replacing the constant HISTORY_PATH in # lesskey. echo 'lesskey: generating .lesskey' -simple_cpp /dev/null; then + sed_i 's/--rscroll=[^ ]*//' lesskey.tmp +fi +simple_cpp < lesskey.tmp \ HISTORY_PATH -- "`pwd`/lesshistory" \ | lesskey - +rm lesskey.tmp chmod 0600 ~/.less # Custom colors for GNU ls. @@ -234,6 +239,12 @@ if installed dig; then grep -v -E '^#' digrc.in >digrc fi +_iptables='/usr/share/zsh/functions/Completion/Linux/_iptables' +if test -f "$_iptables"; then + sed '/^#compdef/ s/iptables/& ip6tables/' \ + < "$_iptables" \ + > zsh/functions/_iptables +fi # LINK SETUP