Compare commits

..

16 Commits

Author SHA1 Message Date
xiongdian.me
4e5dfce9fb riot: support multiple remotes, delimiter=comma (,) 2023-11-03 18:55:24 +08:00
xiongdian.me
c5841e4aaa riot: proxy delimiter from comma (,) to slash (/) 2023-11-03 18:34:55 +08:00
xiongdian.me
37abe68d1f riot: ssh support instant command 2023-08-21 18:36:44 +08:00
deec5c9b05 riot use get_free_port to fix issue on windows 2023-08-17 18:05:51 +08:00
xiongdian.me
2ffc0e38f4 common.sh: is_port_free and get_free_port 2023-08-08 18:05:14 +08:00
xiongdian.me
fb43df06f4 sagt: import ssh-agent -P paths 2023-08-07 15:48:33 +08:00
xiongdian.me
34b2a2a5ad sagt: reset agent so paths 2023-08-03 19:45:27 +08:00
xiongdian.me
41f910e31d .zshrc: warn if not in main channel 2023-08-02 00:00:10 +08:00
xiongdian.me
dbba66ccd0 riot: shortcuts i,x,j 2023-08-01 23:51:29 +08:00
xiongdian.me
2ecdf945a9 riot: add domain box[0-9] 2023-08-01 23:38:49 +08:00
xiongdian.me
5938ca8d22 try to fix ci for macos 2023-07-29 16:21:10 +08:00
xiongdian.me
aafafda412 zshrc: try to use gnu-ls 2023-07-29 16:10:52 +08:00
xiongdian.me
e57ec2dc5d zshrc: use gnu ls on mac 2023-07-29 15:59:53 +08:00
xiongdian.me
fe938f113b to-install: nix 2023-07-29 03:59:09 +08:00
xiongdian.me
9f3c55a5f7 .zshrc: alias sl for sudo zsh -l 2023-07-29 03:35:23 +08:00
8e3f069c6d auth: add .eid/authorized_certificates for pam pkcs11 auth 2023-07-27 02:46:28 +08:00
3 changed files with 2 additions and 6 deletions

View File

@ -149,9 +149,6 @@ install_symlink()
{ {
fmt_note "installing symlinks ..." fmt_note "installing symlinks ..."
for ((i=0; i<${#HOME_SYMLINKS_SRC[@]}; i++)); do for ((i=0; i<${#HOME_SYMLINKS_SRC[@]}; i++)); do
if [[ -z "${HOME_SYMLINKS_SRC[$i]}" ]]; then
continue
fi
local src="$DOTFILES/${HOME_SYMLINKS_SRC[$i]}" local src="$DOTFILES/${HOME_SYMLINKS_SRC[$i]}"
local dst="$HOME/${HOME_SYMLINKS_DST[$i]}" local dst="$HOME/${HOME_SYMLINKS_DST[$i]}"
fmt_info "creating symlink \"$dst\" --> \"$src\" ..." fmt_info "creating symlink \"$dst\" --> \"$src\" ..."
@ -330,7 +327,6 @@ for i in ${GOT_OPTS[@]}; do
-a|--auto ) INSTALL_DEP=1 ;; -a|--auto ) INSTALL_DEP=1 ;;
-H|--hist|--history ) store_hist=1 ;; -H|--hist|--history ) store_hist=1 ;;
-x ) store_config=1 ;; -x ) store_config=1 ;;
--no-ssh ) unset HOME_SYMLINKS_SRC[0]; unset HOME_SYMLINKS_DST[0] ;;
* ) fmt_fatal "unknown option \"$i\"" ;; * ) fmt_fatal "unknown option \"$i\"" ;;
esac esac
done done

View File

@ -86,6 +86,7 @@ get_server_meta() {
RET_TRUST_SERVER=1 RET_TRUST_SERVER=1
;; ;;
* ) * )
test -z "$domain" || fmt_warning "unknown domain: \"$domain\". will try as host name"
RET_HOSTNAME="$remote" RET_HOSTNAME="$remote"
esac esac
} }

View File

@ -38,8 +38,7 @@ test $(echo n | tools/common.sh ask_for_yN "test") = "0"
test $(echo | tools/common.sh ask_for_yN "test") = "0" test $(echo | tools/common.sh ask_for_yN "test") = "0"
test $(echo | tools/common.sh ask_for_Yn "test") = "1" test $(echo | tools/common.sh ask_for_Yn "test") = "1"
test $(DFS_QUIET=1 tools/common.sh ask_for_Yn "test") = "1" test $(DFS_QUIET=1 tools/common.sh ask_for_Yn "test") = "1"
test "$(DFS_TRUST=1 riot time@is.impt:2222/yes@you-r.right/you@are.really.recht./ibd./try@it,another@host scp /tmp/ ./tmp -D 2>/dev/null)" = 'scp -P 12022 -o ControlMaster=auto -o ControlPath=/tmp/sshcm-%C -o PermitLocalCommand=yes -o ProxyJump=time@is.impt:2222,yes@you-r.right,you@are.really.recht.,ibd. -r try@it.ibd.ink:"/tmp/" "./tmp" test "$(DFS_TRUST=1 riot time@is.impt:2222,yes@you-r.right,you@are.really.recht.,ibd.,try@it scp /tmp/ ./tmp -D 2>/dev/null)" = 'scp -P 12022 -o ControlMaster=auto -o ControlPath=/tmp/sshcm-%C -o PermitLocalCommand=yes -o ProxyJump=time@is.impt:2222,yes@you-r.right,you@are.really.recht.,ibd. -r try@it.ibd.ink:"/tmp/" "./tmp"'
scp -P 12022 -o ControlMaster=auto -o ControlPath=/tmp/sshcm-%C -o PermitLocalCommand=yes -o ForwardX11=yes -o ForwardAgent=yes -r another@host.ibd.ink:"/tmp/" "./tmp"'
# check alias # check alias
alias p114 alias p114