mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 11:47:00 +08:00
Compare commits
2 Commits
4e5dfce9fb
...
bf726ea5cc
Author | SHA1 | Date | |
---|---|---|---|
|
bf726ea5cc | ||
483f7fd7f3 |
|
@ -149,6 +149,9 @@ 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\" ..."
|
||||||
|
@ -327,6 +330,7 @@ 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,7 +86,6 @@ 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,7 +38,8 @@ 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 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,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"
|
||||||
|
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