From 9ec6561df24672ca6018d2839f7e6d94e1302f17 Mon Sep 17 00:00:00 2001 From: aewens Date: Mon, 30 Mar 2020 09:10:46 -0600 Subject: [PATCH] Fixed docs and patched bug in bash profile --- .bash_profile | 2 +- .gitignore | 1 + README.md | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.bash_profile b/.bash_profile index 8f60dcb..b913e47 100644 --- a/.bash_profile +++ b/.bash_profile @@ -16,7 +16,7 @@ PATH="$HOME/bin:$HOME/.local/bin:$PATH" [[ $- != *i* ]] && return if [[ -z "$TMUX" ]] ; then - tmux has-session &> /dev/null + tmux has-session -t "one" &> /dev/null if [ $? -eq 1 ]; then exec tmux new-session -s "one" exit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c3f34ab --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.ssh/known_hosts diff --git a/README.md b/README.md index 0ee4cd5..6d06d95 100644 --- a/README.md +++ b/README.md @@ -15,12 +15,12 @@ $ ssh-keygen -t ed25519 1. Add your public key to the authorized_keys file: ```bash -$ cat ~/.ssh/id_ed25519.pub >> authorized_keys +$ cat ~/.ssh/id_ed25519.pub >> .ssh/authorized_keys ``` 1. Add, commit, and push your changes: ```bash -$ git add authorized_keys +$ git add .ssh/authorized_keys $ git commit -m "Added SSH keys for " $ git push origin master ```