diff --git a/home/-shrc b/home/-shrc index b41f3e1..224b7c5 100644 --- a/home/-shrc +++ b/home/-shrc @@ -4,10 +4,11 @@ #umask 027 # screw others umask 022 # don't inherit last umask. pip will break itself. +hash -d e=/media/2tb/you + ADDPATH() { grep ":$1:" <<<":$PATH:" >/dev/null || export PATH="$PATH:$1" } - ADDPATH "$HOME/opt/local/bin" r="$HOME/.gem/ruby/2.2.0/bin" diff --git a/home/uncrustify.cfg b/home/uncrustify.cfg index b8bd7c8..e3ec3da 100644 --- a/home/uncrustify.cfg +++ b/home/uncrustify.cfg @@ -335,7 +335,7 @@ nl_multi_line_cond = true nl_multi_line_define = true nl_before_case = false nl_before_throw = remove -nl_after_case = true +nl_after_case = false nl_case_colon_brace = remove nl_namespace_brace = ignore nl_template_class = ignore diff --git a/home/vimrc b/home/vimrc index b8eb08a..bd2dd69 100644 --- a/home/vimrc +++ b/home/vimrc @@ -185,6 +185,8 @@ nn X nn p "0p nn P "0P nn e :tabe +nn . @: +"nn x :!chmod +x % | e " how to end shell command? if v:version < 703 " even debian stable has 7.3, so... set nomodeline diff --git a/sh/aur b/sh/aur index 50f5432..f3dc5d5 100755 --- a/sh/aur +++ b/sh/aur @@ -12,9 +12,10 @@ aur() { fi local o_download=1 o_edit=1 o_make=1 o_install=1 - local o_any_arch=1 o_sudo=1 o_force=0 o_yes=0 o_jobs=0 o_all_at_once=0 + local o_any_arch=1 o_sudo=1 o_force=0 o_yes=0 o_jobs=0 + local o_all_at_once=0 o_install_anyway=0 local opt= - while getopts 'demiasfyoj:h' opt; do + while getopts 'demiasfyoIj:h' opt; do case $opt in d) o_download=0;; e) o_edit=0;; @@ -25,6 +26,7 @@ aur() { f) o_force=1;; y) o_yes=1;; o) o_all_at_once=1;; + I) o_install_anyway=1;; j) let o_jobs++;; ?) local fd=0 [ $opt = h ] && fd=0 || fd=2 @@ -85,7 +87,7 @@ aur() { fi fi fi - if [ $success -eq 0 ]; then + if [ $success -eq 0 ] && [ $o_install_anyway -eq 0 ]; then fail=1 continue fi