mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 09:47:00 +08:00
Compare commits
3 Commits
607b27b385
...
3d4a264a30
Author | SHA1 | Date | |
---|---|---|---|
3d4a264a30 | |||
864456d35d | |||
3667d3bd15 |
2
.zshrc2
2
.zshrc2
|
@ -104,7 +104,7 @@ alias "se"='sudo -sE'
|
|||
alias "sl"='sudo zsh -l'
|
||||
alias "cps"='rsync -avh --info=progress2'
|
||||
alias "mvs"='rsync -avh --info=progress2 --remove-source-files'
|
||||
alias "ping"='ping -n'
|
||||
if [[ $("$DOTFILES/tools/common.sh" get_os_type) == "linux" ]]; then alias "ping"='ping -n'; fi
|
||||
alias "pbd"='ping baidu.com'
|
||||
alias "p114"='ping 114.114.114.114'
|
||||
alias "p666"='ping6 2001:da8::666'
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
# remotes
|
||||
j.remote() {
|
||||
remote=sir0.ibd.ink
|
||||
RET_PORT=${RET_PORT:-36122}
|
||||
remote=ssh.beardic.cn
|
||||
RET_PORT=${RET_PORT:-24022}
|
||||
RET_USERNAME=${RET_USERNAME:-root}
|
||||
RET_TRUST_SERVER=1
|
||||
}
|
||||
|
|
|
@ -103,6 +103,7 @@ update_dns()
|
|||
ip4=""
|
||||
elif [[ "$DFS_DDNS_IP4" == "auto" ]]; then
|
||||
ip4="auto"
|
||||
api_url="https://api4.beardic.cn"
|
||||
elif [[ "$DFS_DDNS_IP4" == "api" ]]; then
|
||||
ip4=$(curl $DFS_CURL_OPTIONS -sSL "https://api.ipify.org")
|
||||
elif [[ "$DFS_DDNS_IP4" == "http"* ]]; then
|
||||
|
|
Loading…
Reference in New Issue
Block a user