diff options
-rw-r--r-- | alias (renamed from alias.sh) | 11 | ||||
-rwxr-xr-x | scripts/load-settings.sh | 2 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,5 @@ | |||
1 | #! /bin/sh | ||
2 | |||
1 | # settings | 3 | # settings |
2 | alias al="vim $0 && source $0" | 4 | alias al="vim $0 && source $0" |
3 | alias all="source $0" | 5 | alias all="source $0" |
@@ -100,7 +102,14 @@ alias t='tig' | |||
100 | alias ts='tig status' | 102 | alias ts='tig status' |
101 | alias ta='tig --all' | 103 | alias ta='tig --all' |
102 | alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2.4.1/tig' | 104 | alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2.4.1/tig' |
103 | #alias upload-tig="$SETTING_DIR/scripts/upload-github-release-asset.sh github_api_token=$(head -1 $SETTING_DIR/tokens/github-release) owner=typebrook repo=tig tag=tig-2.4.1 filename=$(which tig)" | 105 | upload-tig() { |
106 | $SETTING_DIR/scripts/upload-github-release-asset.sh \ | ||
107 | github_api_token=$(cat $HOME/.ssh/github) \ | ||
108 | owner=typebrook \ | ||
109 | repo=tig \ | ||
110 | tag=tig-2.4.1 \ | ||
111 | filename=$(which tig) | ||
112 | } | ||
104 | 113 | ||
105 | # Android | 114 | # Android |
106 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' | 115 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' |
diff --git a/scripts/load-settings.sh b/scripts/load-settings.sh index 1bc936f..f266a22 100755 --- a/scripts/load-settings.sh +++ b/scripts/load-settings.sh | |||
@@ -3,7 +3,7 @@ if [[ -z "$SETTING_DIR" ]]; then | |||
3 | fi | 3 | fi |
4 | 4 | ||
5 | # load custom aliases | 5 | # load custom aliases |
6 | source $SETTING_DIR/alias.sh | 6 | source $SETTING_DIR/alias |
7 | 7 | ||
8 | # Add custom scripts into PATH | 8 | # Add custom scripts into PATH |
9 | PATH=$PATH:$SETTING_DIR/scripts | 9 | PATH=$PATH:$SETTING_DIR/scripts |