Browse Source

add setup.sh and move ~/bin -> ~/.local/bin

pull/1/head
10sr 12 years ago
parent
commit
cdcece6bcd
3 changed files with 2 additions and 31 deletions
  1. +0
    -28
      bashrc
  2. +1
    -1
      emacs.el
  3. +1
    -2
      profile

+ 0
- 28
bashrc View File

@@ -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


+ 1
- 1
emacs.el View File

@@ -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


+ 1
- 2
profile View File

@@ -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"

Loading…
Cancel
Save