Browse Source

Various bash changes

master
John Mertz 3 months ago
parent
commit
22e580924c
3 changed files with 29 additions and 9 deletions
  1. +4
    -1
      bash/bash_aliases
  2. +2
    -1
      bash/bash_login
  3. +23
    -7
      bash/bashrc

+ 4
- 1
bash/bash_aliases View File

@@ -17,7 +17,10 @@ alias ll='ls -alh'
alias gvim="/usr/bin/urxvt -e /bin/bash -c vim -i"
alias startsway='/home/jpm/scripts/sway/startsway.sh'
alias starti3='/home/jpm/scripts/i3/starti3.sh'
alias mattermost='/usr/local/bin/chromium im.fastnet.ch'
alias bumble="/usr/local/bin/chromium bumble.com"
alias papillon="/usr/local/bin/chromium 'papillon.john.me.tz/hud.php?refresh=3600&theme=dark'"
alias vim="nvim"
alias pip-upgrade="pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U"
alias pip="pip3"
alias python="python3"
alias fuck='sudo "$BASH" -c "$(history -p !!)"'

+ 2
- 1
bash/bash_login View File

@@ -10,10 +10,11 @@ export GTK_THEME="Gruvbox"
export XDG_DATA_HOME="${HOME}/.config"
export PROFILE_NAME="Gruvbox"
export QT_QPA_PLATFORMTHEME="qt5ct"
export QT_QPA_PLATFORM="wayland-egl"
export DCONF=".config/dconf/user"
source ${HOME}/.config/bash/bash_aliases

if [ ! -e /home/jpm/.config/last_login_gui ]; then
echo "Use 'startsway' or 'starti3' to launch a GUI"
fi
source "$HOME/.cargo/env"
#source "$HOME/.cargo/env"

+ 23
- 7
bash/bashrc View File

@@ -25,8 +25,8 @@ HISTCONTROL=ignoreboth

# append to the history file, don't overwrite it
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=5000
HISTFILESIZE=50000
HISTSIZE=500000
HISTFILESIZE=1000000

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
@@ -42,14 +42,14 @@ if ! shopt -oq posix; then
fi

# Bell when prompt is returned to mark as urgent
PROMPT_COMMAND='printf "\a"'
PROMPT_COMMAND='printf "\a"; history -a'

# Two different PS1 scripts to choose from
if [[ $COLORTERM == 'truecolor' ]]; then
PROMPT_COMMAND="$PROMPT_COMMAND; source /home/jpm/.config/bash/background-prompt.sh"
else
#if [[ $COLORTERM == 'truecolor' ]]; then
#PROMPT_COMMAND="$PROMPT_COMMAND; source /home/jpm/.config/bash/background-prompt.sh"
#else
PROMPT_COMMAND="$PROMPT_COMMAND; source /home/jpm/.config/bash/color-prompt.sh"
fi
#fi

# Enable color support if possible
if [ -x /usr/bin/dircolors ]; then
@@ -81,3 +81,19 @@ PERL_MM_OPT="INSTALL_BASE=/home/jpm/perl5"; export PERL_MM_OPT;

source "$HOME/.config/bash/path"
source "$HOME/.vim/bundle/gruvbox/gruvbox_256palette.sh"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi

export TERM="xterm"
export QT_QPA_PLATFORM=wayland
export QML_IMPORT_PATH=/usr/lib/qt/qml
export QT_PLUGIN_PATH=/usr/lib/qt/plugins
export QML2_IMPORT_PATH=/usr/lib/qt/qml
export MOZ_ENABLE_WAYLAND=1
export MOZ_WEBRENDER=1
export XDG_SESSION_TYPE=wayland
export XDG_CURRENT_DESKTOP=sway
export XDG_CONFIG_HOME=/home/jpm/.config

Loading…
Cancel
Save