commit ca44e3e343bd2d82023682dd00cdc567aaa1996f parent ff84ba96b385543d30dcc5fcd96858542a1a16c7 Author: Jake Bauer <jbauer@paritybit.ca> Date: Tue, 2 Feb 2021 21:26:09 -0500 Remove inputrc and update .profile Diffstat:
D | .config/inputrc | | | 2 | -- |
M | .profile | | | 19 | +++++-------------- |
2 files changed, 5 insertions(+), 16 deletions(-)
diff --git a/.config/inputrc b/.config/inputrc @@ -1,2 +0,0 @@ -set completion-ignore-case on -set enable-keypad on diff --git a/.profile b/.profile @@ -39,12 +39,10 @@ export WEECHAT_HOME="$XDG_CONFIG_HOME/weechat" # Removes ~/.lesshst export LESSHISTFILE="$XDG_CACHE_HOME/lesshst" # Removes ~/.bash_history -export HISTFILE="$XDG_CACHE_HOME/bash_history" +export HISTFILE="$XDG_CACHE_HOME/shell_history" # Removes ~/.lynxrc export LYNX_CFG="$HOME/.config/lynx/lynx.cfg" export LYNX_LSS="$HOME/.config/lynx/lynx.lss" -# Removes ~/.inputrc -export INPUTRC="$XDG_CONFIG_HOME/inputrc" # Removes ~/.hledger.journal export LEDGER_FILE="$XDG_DATA_HOME"/hledger.journal @@ -66,19 +64,12 @@ export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"; a="${a%_}" export LESS_TERMCAP_ue="$(printf '%b' '[0m')"; a="${a%_}" export GROFF_NO_SGR=1 -# If running bash -if [ -n "$BASH_VERSION" ]; then - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" - fi -# If running dash/ash -else - if [ -f "$XDG_CONFIG_HOME/shrc" ]; then - export ENV="$XDG_CONFIG_HOME/shrc" - fi +# Load shell config file +if [ -f "$XDG_CONFIG_HOME/shrc" ]; then + export ENV="$XDG_CONFIG_HOME/shrc" fi #For starting X on first login of a shell -if [ ! $DISPLAY ] && [ $XDG_VTNR -eq 1 ]; then +if [ ! "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ]; then exec startx fi