summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2023-06-07 08:59:54 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2023-06-07 08:59:54 -0600
commita49075e01cfdc7225591ae55b5696e8ac2bb7e18 (patch)
treeadf5d1e60776197e97bdbff143342704c59f885b
parent56c1c65217c1deee8ab91535f40d279d5912c06d (diff)
export gpg tty
-rw-r--r--.config/shell/profile14
1 files changed, 7 insertions, 7 deletions
diff --git a/.config/shell/profile b/.config/shell/profile
index 0539ba1..071a8ba 100644
--- a/.config/shell/profile
+++ b/.config/shell/profile
@@ -1,16 +1,15 @@
#!/bin/sh
-# read personal programs
export PATH="$PATH:$(du -L "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
-# default programs
+
+# use neovim if available
if command -v nvim &> /dev/null; then
export EDITOR="nvim"
elif command -v vim &> /dev/null; then
export EDITOR="vim"
fi
-# ~/ cleanup
- # XDG base directory specification found in:
- # https://wiki.archlinux.org/index.php/XDG_Base_Directory
+# $HOME cleanup
+# https://wiki.archlinux.org/index.php/XDG_Base_Directory
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
@@ -18,12 +17,13 @@ export XDG_STATE_HOME="$HOME/.local/state"
export LESSHISTFILE="-"
export HISTFILE="$XDG_STATE_HOME/bash/history"
export WGETRC="$XDG_CONFIG_HOME/wgetrc"
- # Golang specific
+# Golang
export GOBIN="$HOME/.local/bin/go"
export GOPATH="$XDG_DATA_HOME/go"
export GOMODCACHE="$XDG_CACHE_HOME/go/mod"
-# read go programs
export PATH="$PATH:$GOBIN:$GOPATH/bin"
+# GPG
+export GPG_TTY=$(tty)
# less
export LESS=-R
if command -v source-highlight &> /dev/null; then