mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 16:47:02 +08:00
Compare commits
16 Commits
bf726ea5cc
...
4e5dfce9fb
Author | SHA1 | Date | |
---|---|---|---|
|
4e5dfce9fb | ||
|
c5841e4aaa | ||
|
37abe68d1f | ||
deec5c9b05 | |||
|
2ffc0e38f4 | ||
|
fb43df06f4 | ||
|
34b2a2a5ad | ||
|
41f910e31d | ||
|
dbba66ccd0 | ||
|
2ecdf945a9 | ||
|
5938ca8d22 | ||
|
aafafda412 | ||
|
e57ec2dc5d | ||
|
fe938f113b | ||
|
9f3c55a5f7 | ||
8e3f069c6d |
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user