Skip to content

Commit

Permalink
Create profile specific ssh configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pkissling committed Nov 7, 2024
1 parent adc445c commit fd9403c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions ssh/config
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Include ~/.orbstack/ssh/config
Include ~/.ssh/config_profile_specific

Host *
UseKeychain yes
Expand Down
1 change: 1 addition & 0 deletions ssh/config_private
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# empty
1 change: 1 addition & 0 deletions ssh/config_work
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Include ~/Coding/work/operations/terraform/ssh_config.d/*
1 change: 1 addition & 0 deletions ssh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ ln -sfv "${HOME}"/.ssh/"${USAGE}".priv "${HOME}"/.ssh/id_rsa

# create symlinks for config file
ln -sfv "${HOME}"/dotfiles/ssh/config "${HOME}"/.ssh
ln -sfv "${HOME}"/dotfiles/ssh/config_"${USAGE}" "${HOME}"/.ssh/config_profile_specific

# add private ssh key from 1password, if not exist
# shellcheck disable=SC2140
Expand Down
2 changes: 1 addition & 1 deletion zsh/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ alias vi="nvim"
alias vim="nvim"

# source usage specific configuration
source ~/.zshrc_user
source ~/.zshrc_profile_specific
2 changes: 1 addition & 1 deletion zsh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ USAGE=$(cat "${HOME}"/dotfiles/.profile)

# create symlinks
ln -sfv "${HOME}"/dotfiles/zsh/.zshrc "${HOME}"
ln -sfv "${HOME}"/dotfiles/zsh/.zshrc_"${USAGE}" "${HOME}"/.zshrc_user
ln -sfv "${HOME}"/dotfiles/zsh/.zshrc_"${USAGE}" "${HOME}"/.zshrc_profile_specific

# install zsh, if not installed already
if [ -z "${ZSH}" ] || ! [ -d "${ZSH}" ]; then
Expand Down

0 comments on commit fd9403c

Please sign in to comment.