mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-07 09:20:30 +08:00
feat(riot-config): remove tailing dot from .domain; remove j.remote and x.domain
This commit is contained in:
parent
ba82ac68db
commit
1b32deeea1
@ -1,13 +1,6 @@
|
|||||||
#!/bin/false
|
#!/bin/false
|
||||||
|
|
||||||
# remotes
|
# remotes
|
||||||
j.remote() {
|
|
||||||
remote=ssh.beardic.cn
|
|
||||||
RET_PORT=${RET_PORT:-24022}
|
|
||||||
RET_USERNAME=${RET_USERNAME:-root}
|
|
||||||
RET_TRUST_SERVER=1
|
|
||||||
}
|
|
||||||
|
|
||||||
nasp.remote() {
|
nasp.remote() {
|
||||||
remote=nasp.fit
|
remote=nasp.fit
|
||||||
RET_PORT=${RET_PORT:-36022}
|
RET_PORT=${RET_PORT:-36022}
|
||||||
@ -19,6 +12,7 @@ nasp.remote() {
|
|||||||
.domain() {
|
.domain() {
|
||||||
RET_USERNAME=${RET_USERNAME:-root}
|
RET_USERNAME=${RET_USERNAME:-root}
|
||||||
RET_PORT=${RET_PORT:-12022}
|
RET_PORT=${RET_PORT:-12022}
|
||||||
|
RET_HOSTNAME=${remote%.}
|
||||||
}
|
}
|
||||||
|
|
||||||
dxng.domain() {
|
dxng.domain() {
|
||||||
@ -42,15 +36,6 @@ i.domain() {
|
|||||||
RET_TRUST_SERVER=1
|
RET_TRUST_SERVER=1
|
||||||
}
|
}
|
||||||
|
|
||||||
x.domain() {
|
|
||||||
RET_HOSTNAME=ssh.beardic.cn
|
|
||||||
local tmp=$(sha256sum <<< "$host" | tr -cd "[:digit:]")
|
|
||||||
tmp=${tmp:0:4}
|
|
||||||
RET_PORT=$((10#$tmp+36000))
|
|
||||||
RET_USERNAME=root
|
|
||||||
RET_TRUST_SERVER=1
|
|
||||||
}
|
|
||||||
|
|
||||||
nasp.domain() {
|
nasp.domain() {
|
||||||
RET_HOSTNAME=$host
|
RET_HOSTNAME=$host
|
||||||
RET_PORT=${RET_PORT:-12022}
|
RET_PORT=${RET_PORT:-12022}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user