| @@ -421,34 +421,6 @@ _colors(){ | |||||
| "\e[0m" | "\e[0m" | ||||
| } | } | ||||
| _my_install_script(){ | |||||
| mkdir -p "$HOME/bin/" | |||||
| for f in "$@" | |||||
| do | |||||
| bn=$(basename "$f") | |||||
| type $bn >/dev/null 2>&1 || { | |||||
| if type wget >/dev/null 2>&1 | |||||
| then | |||||
| wget "$f" -P "$HOME/bin/" && | |||||
| chmod u+x "$HOME/bin/${bn}" | |||||
| elif type curl >/dev/null 2>&1 | |||||
| then | |||||
| curl --url "$f" --output "$HOME/bin/${bn}" && | |||||
| chmod u+x "$HOME/bin/${bn}" | |||||
| fi | |||||
| } | |||||
| done | |||||
| } | |||||
| _my_install_script http://www.frexx.de/xterm-256-notes/data/colortable16.sh http://www.frexx.de/xterm-256-notes/data/256colors2.pl | |||||
| _my_install_symlink_script(){ | |||||
| mkdir -p "$HOME/bin/" | |||||
| for f in "$@" | |||||
| do | |||||
| ln -s "$PWD/$f" "$HOME/bin/" | |||||
| done | |||||
| } | |||||
| winln(){ | winln(){ | ||||
| # for windose make link (actually junction) | # for windose make link (actually junction) | ||||
| if test $# -eq 0 | if test $# -eq 0 | ||||
| @@ -1935,7 +1935,7 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit." | |||||
| "c:/Program Files/Git/bin" | "c:/Program Files/Git/bin" | ||||
| "c:/MinGW/bin" | "c:/MinGW/bin" | ||||
| "c:/MinGW/mingw32/bin" | "c:/MinGW/mingw32/bin" | ||||
| (expand-file-name "~/bin") | |||||
| (expand-file-name "~/.local/bin") | |||||
| (expand-file-name "~/dbx/apps/bin")) | (expand-file-name "~/dbx/apps/bin")) | ||||
| (when window-system | (when window-system | ||||
| @@ -21,10 +21,9 @@ __add_to_path(){ | |||||
| done | done | ||||
| } | } | ||||
| # export PATH="${PATH}:${HOME}/bin" | # export PATH="${PATH}:${HOME}/bin" | ||||
| __add_to_path ${HOME}/bin /c/mingw/bin /c/mingw/msys/1.0/bin | |||||
| __add_to_path ${HOME}/.local/bin /c/mingw/bin /c/mingw/msys/1.0/bin | |||||
| type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 | type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 | ||||
| # in my environment powerdown does not work | # in my environment powerdown does not work | ||||
| mkdir -p ~/.my/log | |||||
| mkdir -p "/tmp/$USER-tmp" | mkdir -p "/tmp/$USER-tmp" | ||||