diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-09-03 18:08:08 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2022-09-03 18:08:08 +0200 |
commit | c472827914e39adc72cc24bc3b2c395f586e5f44 (patch) | |
tree | bbf3248e9d08d1c14dac8f15d2fd2fd1b4f1c241 | |
parent | f41acdb8431a2cb496ddd153fea4410aef1f28e6 (diff) |
Actually make ssh-agent start
-rw-r--r-- | profile | 31 | ||||
-rwxr-xr-x | shell_only.sh | 1 | ||||
-rw-r--r-- | zshrc | 2 |
3 files changed, 2 insertions, 32 deletions
diff --git a/profile b/profile deleted file mode 100644 index cbdbb5c..0000000 --- a/profile +++ /dev/null @@ -1,31 +0,0 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/bin" ] ; then - PATH="$HOME/bin:$PATH" -fi - -# set PATH so it includes user's private bin if it exists -if [ -d "$HOME/.local/bin" ] ; then - PATH="$HOME/.local/bin:$PATH" -fi -. "$HOME/.cargo/env" - -mkdir -p /tmp/ssh-${UID} -eval "$(ssh-agent -s -a /tmp/ssh-${UID}/agent.sock)" diff --git a/shell_only.sh b/shell_only.sh index 960a17b..aad155e 100755 --- a/shell_only.sh +++ b/shell_only.sh @@ -99,7 +99,6 @@ ln -sf ${PWD}/zshrc ~/.zshrc ln -sf ${PWD}/zsh_aliases ~/.zsh_aliases ln -sf ${PWD}/fzf_key_bindings.zsh ~/.zsh_fzf_key_bindings ln -sf ${PWD}/fzf_completion.zsh ~/.zsh_fzf_completion -ln -sf ${PWD}/profile ~/.profile ln -sf ${PWD}/tmux.conf ~/.tmux.conf ln -sf ${PWD}/vimrc ~/.vimrc @@ -13,6 +13,8 @@ source ~/.zsh_fzf_completion # SSH agent export SSH_AUTH_SOCK="/tmp/ssh-${UID}/agent.sock" +mkdir -p /tmp/ssh-${UID} +eval "$(ssh-agent -s -a /tmp/ssh-${UID}/agent.sock)" # Start X? if [[ "${TTY}" == "/dev/tty1" ]]; then |