diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-07 18:52:08 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2020-09-07 18:52:08 +0800 |
commit | 6c9744fa93d8a24374a91ccf553ff17f494cf2d7 (patch) | |
tree | c3a61e7a1ea85a7930da0096779554393d943bb7 | |
parent | 131f4c6c30f4759312b283f18cf8e835674a6014 (diff) |
update
-rw-r--r-- | alias | 1 | ||||
-rwxr-xr-x | tools/load-settings.sh | 6 |
2 files changed, 4 insertions, 3 deletions
@@ -296,6 +296,7 @@ alias tma='tmux a' | |||
296 | alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm' | 296 | alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm' |
297 | alias du='ncdu' | 297 | alias du='ncdu' |
298 | alias we='weechat' | 298 | alias we='weechat' |
299 | alias p8='ping 8.8.8.8' | ||
299 | mvt_decode() { | 300 | mvt_decode() { |
300 | python3 $SETTING_DIR/tools/mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq . | 301 | python3 $SETTING_DIR/tools/mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq . |
301 | } | 302 | } |
diff --git a/tools/load-settings.sh b/tools/load-settings.sh index 073abf7..ee41d00 100755 --- a/tools/load-settings.sh +++ b/tools/load-settings.sh | |||
@@ -15,12 +15,12 @@ export EDITOR=vim | |||
15 | source $SETTING_DIR/alias | 15 | source $SETTING_DIR/alias |
16 | 16 | ||
17 | # Add custom scripts into PATH | 17 | # Add custom scripts into PATH |
18 | mkdir -p $HOME/.local/bin | 18 | mkdir -p $HOME/bin |
19 | PATH=$PATH:$HOME/.local/bin | 19 | PATH=$PATH:$HOME/bin |
20 | 20 | ||
21 | find $SETTING_DIR/tools -type f -executable | \ | 21 | find $SETTING_DIR/tools -type f -executable | \ |
22 | xargs realpath | \ | 22 | xargs realpath | \ |
23 | xargs -I{} ln -sf {} $HOME/.local/bin | 23 | xargs -I{} ln -sf {} $HOME/bin |
24 | 24 | ||
25 | # sync with important git repos | 25 | # sync with important git repos |
26 | $SETTING_DIR/tools/sync.sh | 26 | $SETTING_DIR/tools/sync.sh |