summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-04-23 17:30:21 -0400
committerBen Morrison <ben@gbmor.dev>2020-04-25 00:40:42 -0400
commit578878f57bd1db44c6c5e22dbda0de486c389266 (patch)
treea1d4983cba4b2dab620022728b4f1103bd36a508
parent2f367902807d982a396414bac3f24d640dc15847 (diff)
downloaddogfiles-578878f57bd1db44c6c5e22dbda0de486c389266.tar.gz
minor changes to launch of gpg-agent
-rw-r--r--.gnupg/gpg-agent.conf2
-rw-r--r--.zprofile13
-rw-r--r--.zshrc.local26
-rwxr-xr-xbin/gk2
4 files changed, 16 insertions, 27 deletions
diff --git a/.gnupg/gpg-agent.conf b/.gnupg/gpg-agent.conf
index 9ae5feb..905af8c 100644
--- a/.gnupg/gpg-agent.conf
+++ b/.gnupg/gpg-agent.conf
@@ -4,4 +4,4 @@ max-cache-ttl 120
 #keep-display
 pinentry-program /usr/bin/pinentry-curses
 
-extra-socket /run/user/1000/gnupg/S.gpg-agent.extra
+#extra-socket /run/user/1000/gnupg/S.gpg-agent.extra
diff --git a/.zprofile b/.zprofile
new file mode 100644
index 0000000..44983af
--- /dev/null
+++ b/.zprofile
@@ -0,0 +1,13 @@
+export LANG=en_US.UTF-8
+export LC_ALL=en_US.UTF-8
+export LANGUAGE=en_US.UTF-8
+
+# use gpg-agent for ssh
+export GPG_TTY=$(tty)
+export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
+#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+gpg-connect-agent updatestartuptty /bye > /dev/null
+#gpgconf --launch gpg-agent
+gpgconf --create-socketdir
+
+ulimit -n 8096
diff --git a/.zshrc.local b/.zshrc.local
index 1b0f3dd..e15f697 100644
--- a/.zshrc.local
+++ b/.zshrc.local
@@ -1,16 +1,3 @@
-export LANG=en_US.UTF-8
-export LC_ALL=en_US.UTF-8
-export LANGUAGE=en_US.UTF-8
-
-# use gpg-agent for ssh
-export GPG_TTY="$(tty)"
-export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
-#export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
-gpg-connect-agent updatestartuptty /bye > /dev/null
-#gpgconf --launch gpg-agent
-gpgconf --create-socketdir
-
-
 alias vim='nvim'
 alias less='$PAGER'
 alias more='$PAGER'
@@ -45,7 +32,7 @@ alias devtilde='cd ~/dev/tildegit'
 # misc environment modifications
 export VISUAL=nvim
 export EDITOR=$VISUAL
-export PAGER='$HOME/.cargo/bin/bat -p'
+export PAGER='/home/ahriman/.cargo/bin/bat -p'
 export BROWSER=firefox
 export TERM=xterm-256color
 export MANPATH="/usr/local/man:$MANPATH"
@@ -84,17 +71,6 @@ export BOOT_CLOJURE_NAME=org.clojure/clojure
 export BOOT_VERSION=2.8.3
 export BOOT_CLOJURE_VERSION=1.8.0
 
-# hide user@host for agnoster oh-my-zsh theme
-DEFAULT_USER=ahriman
-prompt_context(){}
-
-# remove newline before zsh prompt
-#SPACESHIP_PROMPT_ADD_NEWLINE=false
-
-ulimit -n 8096
-
-#eval "$(starship init zsh)"
-
 # shadowgate mud over ssl
 alias shadowgate='socat TCP-LISTEN:8080,fork,reuseaddr OPENSSL:shadowgate.org:8443'
 
diff --git a/bin/gk b/bin/gk
index f0886f6..c801a45 100755
--- a/bin/gk
+++ b/bin/gk
@@ -1,7 +1,7 @@
 #!/bin/sh
 pkill gpg-agent
 
-export GPG_TTY="$(tty)"
+export GPG_TTY=$(tty)
 export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
 gpg-connect-agent updatestartuptty /bye