Skip to content

Commit

Permalink
Added check for home ssh dir and ssh config
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnerWill committed Oct 8, 2024
1 parent 798378a commit 4a9ca56
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .config/zsh/zsh/user/zsh.d/00_pre.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,8 @@
# fi
# fi
# fi

## Check if SSH dir and files exist, otherwise this will show a warning for zcomp
[[ -d "${HOME}/.ssh" ]] || mkdir "${HOME}/.ssh"
[[ -f "${HOME}/.ssh/known_hosts" ]] || touch "${HOME}/.ssh/known_hosts"
[[ -f "${HOME}/.ssh/config" ]] || touch "${HOME}/.ssh/config"

0 comments on commit 4a9ca56

Please sign in to comment.