Skip to content

Commit

Permalink
Misc MacOS tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy committed Jun 13, 2018
1 parent 8746226 commit ac47832
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions link/.ssh/config
Expand Up @@ -6,6 +6,12 @@ ForwardAgent yes
# Automatically add all common hosts to the host file as they are connected to.
StrictHostKeyChecking no

# Allow MacOS to use the keychain for SSH key passphrases
Host *
UseKeychain yes
AddKeysToAgent yes
IdentityFile ~/.ssh/id_rsa

# For vagrant virtual machines
# http://hakunin.com/six-ansible-practices#configure-your-ssh-client
Host 192.168.33.* *.loc
Expand Down
6 changes: 6 additions & 0 deletions source/50_editor.sh
Expand Up @@ -2,6 +2,12 @@

export EDITOR=vim

# If mvim is installed, use it instead of native vim
if [[ "$(which mvim)" ]]; then
EDITOR="mvim -v"
alias vim="$EDITOR"
fi

if [[ ! "$SSH_TTY" ]]; then
if [[ ! "$TMUX" ]]; then
is_osx && EDITOR=mvim || EDITOR=gvim
Expand Down

0 comments on commit ac47832

Please sign in to comment.