aboutsummaryrefslogtreecommitdiff
path: root/common/profile.org
diff options
context:
space:
mode:
authorJacob Janzen <jjanzenn@proton.me>2024-08-10 12:01:43 -0500
committerJacob Janzen <jjanzenn@proton.me>2024-08-10 12:01:43 -0500
commitf2f2c7c7e17d4f54d5ef8a58b78aff0fc5e1ab91 (patch)
tree16753a1673df86545228d3dbce76710f4f692866 /common/profile.org
parent1b18fbaa583e282ed59bc26876b6c78f0a28ac38 (diff)
Revert "fix-paths"
This reverts commit 1b18fbaa583e282ed59bc26876b6c78f0a28ac38.
Diffstat (limited to 'common/profile.org')
-rw-r--r--common/profile.org18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/profile.org b/common/profile.org
new file mode 100644
index 0000000..87bbbaa
--- /dev/null
+++ b/common/profile.org
@@ -0,0 +1,18 @@
+#+TITLE: =.profile= Settings
+* Path
+Add items to the path.
+#+begin_src sh :tangle ~/.profile
+export PATH="$HOME/.local/share/fzf-zsh-plugin/bin:$HOME/node_modules/.bin:$HOME/.emacs.d/bin:$HOME/bin:$HOME/gems/bin:$HOME/.local/bin:$HOME/go/bin:$PATH"
+#+end_src
+
+* SSH Agent
+Run =ssh-agent= if =ssh-agent= is not already running on my Gentoo system. Ensure that the authorization socket is available in the shell.
+#+begin_src sh :tangle ~/.profile
+ if [ "$(uname)" = 'Linux' ] && grep 'ID=gentoo' /etc/os-release; then
+ if [ ! -S ~/.ssh/ssh_auth_sock ]; then
+ eval `ssh-agent` > /dev/null
+ ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
+ fi
+ export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
+ fi
+#+end_src