@jswork/ushell-module-base 1.0.20 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/modules/cd.sh +4 -1
- package/modules/ip.sh +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
package/modules/cd.sh
CHANGED
|
@@ -12,5 +12,8 @@ alias lwb="cd ~/aric-lwb";
|
|
|
12
12
|
alias spider="cd ~/aric-spider";
|
|
13
13
|
alias business="cd ~/aric-business";
|
|
14
14
|
alias pypi="cd ~/aric-pypi";
|
|
15
|
-
alias
|
|
15
|
+
alias tpls="cd ~/aric-tpls";
|
|
16
|
+
alias a7="cd ~/alo7i";
|
|
16
17
|
alias saybot="cd ~/saybot";
|
|
18
|
+
alias down="cd ~/Downloads";
|
|
19
|
+
|
package/modules/ip.sh
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
|
|
3
3
|
# server ip
|
|
4
|
-
export SERVER_IP=`wget -qO- ipecho.net/plain`;
|
|
4
|
+
export SERVER_IP=`wget -qO- ipecho.net/plain -T 2`;
|
|
5
5
|
# for macos
|
|
6
6
|
if [[ $(uname) == Darwin ]]; then
|
|
7
|
-
|
|
7
|
+
export SERVER_IP='127.0.0.1';
|
|
8
8
|
fi
|
|
9
9
|
|
|
10
10
|
|