From dc500844c448deb46aa8613faa3d295a0061965c Mon Sep 17 00:00:00 2001 From: Benjamin Morrison Date: Mon, 6 Nov 2023 22:15:23 -0500 Subject: config drifted. --- .kshrc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.kshrc') 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 -- cgit 1.4.1