summary refs log tree commit diff stats
path: root/.kshrc
diff options
context:
space:
mode:
authorBenjamin Morrison <ben@gbmor.org>2023-11-06 22:15:23 -0500
committerBenjamin Morrison <ben@gbmor.org>2023-11-06 22:15:23 -0500
commitdc500844c448deb46aa8613faa3d295a0061965c (patch)
treed8090e57e9d728f6119d34d05b730d4cf168ddfc /.kshrc
parentc5bae0a85eccbfb07fa5b269b3e8d73e7a60bac4 (diff)
downloaddogfiles-dc500844c448deb46aa8613faa3d295a0061965c.tar.gz
config drifted. HEAD trunk
Diffstat (limited to '.kshrc')
-rw-r--r--.kshrc10
1 files changed, 8 insertions, 2 deletions
diff --git a/.kshrc b/.kshrc
index 3dd091a..30aeb9c 100644
--- a/.kshrc
+++ b/.kshrc
@@ -4,6 +4,12 @@ bind ^L=clear-screen
 set -o emacs
 export TERM=xterm-256color
 
+export GPG_TTY="$(tty)"
+#export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
+#gpgconf --create-socketdir
+#gpgconf --launch gpg-agent
+#gpg-connect-agent updatestartuptty /bye >/dev/null
+
 [ -f "$HOME/.ksh_completions" ] && . "$HOME/.ksh_completions"
 
 _ps1_ret_code() {
@@ -12,14 +18,14 @@ _ps1_ret_code() {
 }
 
 _ps1_git_branch() {
-  git_status="$(git status 2>/dev/null | awk '/On branch/ {print $3}')"
+  git_status="$(git branch --show-current 2>/dev/null)"
   if [ "$git_status" != "" ]; then
     echo " ($git_status)" 
   fi
 }
 
 #shellcheck disable=SC2025
-export PS1='\u@\h \w`_ps1_git_branch``_ps1_ret_code`\$ '
+export PS1='\n\u@\h \w`_ps1_git_branch``_ps1_ret_code`\$ '
 
 dotfiles() {
   #shellcheck disable=SC2068