1
0
Fork 0

Fix ssh rc file

main
Mari 3 years ago
parent 3aa8993208
commit de51da3593
  1. 5
      bash/bash_aliases.sh
  2. 8
      per-host/costadelsol/.ssh/rc
  3. 8
      per-host/crystarium/.ssh/rc
  4. 8
      per-host/goldsaucer/.ssh/rc
  5. 8
      per-host/gubal/.ssh/rc
  6. 8
      per-host/mordhona/.ssh/rc
  7. 8
      per-host/template/.ssh/rc
  8. 5
      zsh/customizations/zsh_aliases.zsh

@ -2,6 +2,11 @@
# Find the path of the git repository relative to this file. # Find the path of the git repository relative to this file.
export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/..") export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/..")
# Set the SSH auth sock to the central location
if [[ -n $SSH_AUTH_SOCK ]] && [[ $SSH_AUTH_SOCK != $HOME/.ssh/ssh_auth_sock ]]; then
ln -sf "$SSH_AUTH_SOCK" "$HOME/.ssh/ssh_auth_sock"
fi
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
# Install EDITOR # Install EDITOR
export EDITOR='nvim' export EDITOR='nvim'

@ -1,2 +1,6 @@
#!/bin/bash if [ -n "$BASH_VERSION" ]; then
. ${BASH_SOURCE[0]}.rc-common export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/../../..")
source ${__COMMON_CONFIGS}/ssh/rc
else
exec bash ~/.ssh/rc
fi

@ -1,2 +1,6 @@
#!/bin/bash if [ -n "$BASH_VERSION" ]; then
. ${BASH_SOURCE[0]}.rc-common export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/../../..")
source ${__COMMON_CONFIGS}/ssh/rc
else
exec bash ~/.ssh/rc
fi

@ -1,2 +1,6 @@
#!/bin/bash if [ -n "$BASH_VERSION" ]; then
. ${BASH_SOURCE[0]}.rc-common export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/../../..")
source ${__COMMON_CONFIGS}/ssh/rc
else
exec bash ~/.ssh/rc
fi

@ -1,2 +1,6 @@
#!/bin/bash if [ -n "$BASH_VERSION" ]; then
. ${BASH_SOURCE[0]}.rc-common export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/../../..")
source ${__COMMON_CONFIGS}/ssh/rc
else
exec bash ~/.ssh/rc
fi

@ -1,2 +1,6 @@
#!/bin/bash if [ -n "$BASH_VERSION" ]; then
. ${BASH_SOURCE[0]}.rc-common export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/../../..")
source ${__COMMON_CONFIGS}/ssh/rc
else
exec bash ~/.ssh/rc
fi

@ -1,2 +1,6 @@
#!/bin/bash if [ -n "$BASH_VERSION" ]; then
. ${BASH_SOURCE[0]}.rc-common export __COMMON_CONFIGS=$(readlink -e "$( dirname "$(realpath -e "${BASH_SOURCE[0]}")" )/../../..")
source ${__COMMON_CONFIGS}/ssh/rc
else
exec bash ~/.ssh/rc
fi

@ -4,6 +4,11 @@
export EDITOR='nvim' export EDITOR='nvim'
# Set up the vim config path # Set up the vim config path
export VIM_CONFIG_DIR=$__COMMON_CONFIGS/vim export VIM_CONFIG_DIR=$__COMMON_CONFIGS/vim
# Set the SSH auth sock to the central location
if [[ -n $SSH_AUTH_SOCK ]] && [[ $SSH_AUTH_SOCK != $HOME/.ssh/ssh_auth_sock ]]; then
ln -sf "$SSH_AUTH_SOCK" "$HOME/.ssh/ssh_auth_sock"
fi
export SSH_AUTH_SOCK="$HOME/.ssh/ssh_auth_sock"
# Set potentially-destructive commands to use interactive modes # Set potentially-destructive commands to use interactive modes
alias rm='rm -i' alias rm='rm -i'

Loading…
Cancel
Save