commit 21f3f9ba743e187af4b7713a006d755b2ef7f5fa
parent 4bdf4af94c0db2d4fc948c01434bfe992041a50c
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Tue, 10 May 2022 18:20:07 -0500
Updated bash
Diffstat:
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/linux/.bash_profile b/linux/.bash_profile
@@ -13,16 +13,16 @@ export XDG_STATE_HOME="$HOME/.local/state"
[ -d $HOME/.local/bin ] && PATH="$PATH:$HOME/.local/bin"
[ -d $XDG_DATA_HOME/npm/bin ] && PATH="$PATH:$XDG_DATA_HOME/npm/bin/"
+#export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export ELINKS_CONFDIR="$XDG_CONFIG_HOME"/elinks
-export GNUPGHOME="$XDG_DATA_HOME"/gnupg
export MAXIMA_USERDIR="$XDG_CONFIG_HOME"/maxima
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
export PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
export PYTHONSTARTUP=$XDG_CONFIG_HOME/python/pythonstartup.py
+export RANDFILE="$XDG_RUNTIME_DIR"/rnd
export XAUTHORITY="$XDG_RUNTIME_DIR"/Xauthority
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
export XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
-export RANDFILE="$XDG_RUNTIME_DIR"/rnd
source ~/.bashrc
diff --git a/linux/.bashrc b/linux/.bashrc
@@ -6,7 +6,7 @@ shopt -s checkwinsize histappend histreedit
HISTCONTROL=ignoreboth
HISTSIZE=100000
HISTFILESIZE=200000
-HISTTIMEFORMAT="%d/%m/%y %T "
+HISTTIMEFORMAT="%D %T "
# Bash completions
if ! shopt -oq posix; then
@@ -29,7 +29,9 @@ LESS_TERMCAP_ue=$'\E[0m' # reset underline
mkdir -p "$XDG_STATE_HOME"/bash
HISTFILE="$XDG_STATE_HOME"/bash/history
-source $XDG_CONFIG_HOME/shell/aliases.bash
+source $XDG_CONFIG_HOME/shell/aliases.sh
+
+GPG_TTY=$(tty)
[ -f /usr/share/git/completion/git-prompt.sh ] && source /usr/share/git/completion/git-prompt.sh
#export GIT_PS1_SHOWCOLORHINTS=1