From cdcece6bcd9d91fa26f11a919ab5672566d02f0d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 3 Aug 2012 15:11:30 +0900 Subject: [PATCH] add setup.sh and move ~/bin -> ~/.local/bin --- bashrc | 28 ---------------------------- emacs.el | 2 +- profile | 3 +-- 3 files changed, 2 insertions(+), 31 deletions(-) diff --git a/bashrc b/bashrc index b57a92c..64aaf9d 100755 --- a/bashrc +++ b/bashrc @@ -421,34 +421,6 @@ _colors(){ "\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(){ # for windose make link (actually junction) if test $# -eq 0 diff --git a/emacs.el b/emacs.el index 99d0c60..70b6a67 100644 --- a/emacs.el +++ b/emacs.el @@ -1935,7 +1935,7 @@ delete; o: select other; j, l: enlarge; h, k: shrink; q: quit." "c:/Program Files/Git/bin" "c:/MinGW/bin" "c:/MinGW/mingw32/bin" - (expand-file-name "~/bin") + (expand-file-name "~/.local/bin") (expand-file-name "~/dbx/apps/bin")) (when window-system diff --git a/profile b/profile index 5dbe145..e07090a 100755 --- a/profile +++ b/profile @@ -21,10 +21,9 @@ __add_to_path(){ done } # 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 # in my environment powerdown does not work -mkdir -p ~/.my/log mkdir -p "/tmp/$USER-tmp"