Delete shell/ssh topic
This commit is contained in:
parent
293620d74c
commit
ea32550057
|
@ -1,24 +0,0 @@
|
||||||
#!/usr/bin/env zsh
|
|
||||||
source ${0:A:h}/../../deploy
|
|
||||||
|
|
||||||
install() {
|
|
||||||
# case $(_os) in
|
|
||||||
# macos) brew install weechat ;;
|
|
||||||
# arch) sudo pacman --needed --noconfirm -S weechat ;;
|
|
||||||
# debian) sudo apt-get install -y weechat ;; # NOTE untested
|
|
||||||
# esac
|
|
||||||
}
|
|
||||||
|
|
||||||
# update() {}
|
|
||||||
|
|
||||||
link() {
|
|
||||||
mkdir -p $XDG_CONFIG_HOME/ssh
|
|
||||||
if [[ -d ~/.ssh ]]; then
|
|
||||||
mv ~/.ssh/* $XDG_CONFIG_HOME/ssh/
|
|
||||||
rm -rf ~/.ssh
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# clean() {}
|
|
||||||
|
|
||||||
init "$@"
|
|
|
@ -1,9 +0,0 @@
|
||||||
key="/keybase/private/$USER/id_rsa"
|
|
||||||
|
|
||||||
config="-o UserKnownHostsFile='$XDG_CONFIG_HOME/ssh/known_hosts' -o IdentityFile='$key'"
|
|
||||||
[[ -f $XDG_CONFIG_HOME/ssh/config ]] && config="$config -F'$XDG_CONFIG_HOME/ssh/config"
|
|
||||||
|
|
||||||
alias ssh="ssh $config "
|
|
||||||
alias scp="scp -o GlobalKnownHostsFile=/etc/hosts $config "
|
|
||||||
alias ssh-copy-id="ssh-copy-id -i $key"
|
|
||||||
alias ssha="ssh-add $key"
|
|
Loading…
Reference in a new issue