aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rwxr-xr-xtools/load-settings.sh7
2 files changed, 8 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 42b10cf..732ec0b 100644
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ vim:
15 fi 15 fi
16 # vim-plug 16 # vim-plug
17 curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ 17 curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
18 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim 18 https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
19 19
20 rm -f ~/.vim_runtime/my_configs.vim 20 rm -f ~/.vim_runtime/my_configs.vim
21 ln -s `pwd`/vimrc ~/.vim_runtime/my_configs.vim 21 ln -s `pwd`/vimrc ~/.vim_runtime/my_configs.vim
@@ -28,7 +28,7 @@ tig:
28 fi 28 fi
29 29
30zsh: 30zsh:
31 sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 31 curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh | bash
32 32
33wiki: 33wiki:
34 # vimwiki 34 # vimwiki
diff --git a/tools/load-settings.sh b/tools/load-settings.sh
index 3f210c7..073abf7 100755
--- a/tools/load-settings.sh
+++ b/tools/load-settings.sh
@@ -15,7 +15,12 @@ export EDITOR=vim
15source $SETTING_DIR/alias 15source $SETTING_DIR/alias
16 16
17# Add custom scripts into PATH 17# Add custom scripts into PATH
18find $SETTING_DIR/tools -print0 -type f -executable | xargs -I{} -0 ln -sf {} ~/.local/bin 18mkdir -p $HOME/.local/bin
19PATH=$PATH:$HOME/.local/bin
20
21find $SETTING_DIR/tools -type f -executable | \
22xargs realpath | \
23xargs -I{} ln -sf {} $HOME/.local/bin
19 24
20# sync with important git repos 25# sync with important git repos
21$SETTING_DIR/tools/sync.sh 26$SETTING_DIR/tools/sync.sh