diff --git a/home/-shrc b/home/-shrc index 941c66f..b41f3e1 100644 --- a/home/-shrc +++ b/home/-shrc @@ -21,7 +21,7 @@ ify() { $@ | $ex } -has() { which "$1" >/dev/null 2>&1 && which "$1"; } +has() { which "$1" >&/dev/null && which "$1"; } # cleanup in case of inherited exports for x in AR CC CPP CXX CFLAGS CPPFLAGS CXXFLAGS LDFLAGS RANLIB RC WINDRES; do @@ -73,6 +73,7 @@ alias revend='objcopy -I binary -O binary --reverse-bytes=4' alias fucksystemd='dmesg | grep -v audit' alias gd='git diff' alias gds='git --no-pager diff --stat' +alias aur="BUILDDIR=$HOME/src $HOME/sh/aur -jj" # providing extra functionality # TODO: dotfiles first, like `LC_ALL=C ls -A` which doesnt work with -X flag diff --git a/home/vimrc b/home/vimrc index 95073cd..b8eb08a 100644 --- a/home/vimrc +++ b/home/vimrc @@ -174,6 +174,17 @@ nn :nohls ino :nohls " follow tag nn +" delete line +nn D dd + +" this frees up x and X for use +set =[3;2~ +nn X + +" unfollow your leaders +nn p "0p +nn P "0P +nn e :tabe if v:version < 703 " even debian stable has 7.3, so... set nomodeline diff --git a/install b/install index 8eeb1f0..17c0500 100755 --- a/install +++ b/install @@ -42,7 +42,8 @@ PATH="${PATH:?No existing PATH}:$rc/sh" umask 027 -for f in .bashrc .zshrc .-shrc .vimrc .conkyrc .inputrc .screenrc .xinitrc; do +for f in .bashrc .zshrc .-shrc .vimrc .conkyrc \ + .inputrc .screenrc .xinitrc .indent.pro .uncrustify.cfg; do dotless "$f" r="$rc/home/$REPLY" hardlink "$f" "$r" diff --git a/sh/e b/sh/e index 97a6efb..d88c152 100755 --- a/sh/e +++ b/sh/e @@ -8,7 +8,7 @@ if [ $# -eq 0 ]; then return fi -local needroot=0 +local f needroot=0 for f in $@; do [ -e "$f" ] && { [ -w "$f" ] || needroot=1; } # TODO: check directory permissions too diff --git a/ssh/known_hosts b/ssh/known_hosts index fc6bed4..09d3a4f 100644 --- a/ssh/known_hosts +++ b/ssh/known_hosts @@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