From b0c0cfeb5a741b3bb8b76e4dbf42d0e5c84a224c Mon Sep 17 00:00:00 2001 From: Angelo Noto Date: Fri, 26 Jun 2026 19:58:41 -0400 Subject: [PATCH] new bash settings from arch --- bash/.bashrc | 9 +++++++++ bash/.bashrc.d/alias.bash | 5 +++++ bash/.bashrc.d/git.bash | 16 ++++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 bash/.bashrc.d/alias.bash create mode 100644 bash/.bashrc.d/git.bash diff --git a/bash/.bashrc b/bash/.bashrc index e420ccc..ef10f73 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -13,6 +13,12 @@ if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then fi export PATH +# export LC_TIME=C +export MANGOHUD_CONFIGFILE=~/.config/MangoHud/MangoHud.conf + +# Swap xbox for playstation +export SDL_GAMECONTROLLER_USE_BUTTON_LABELS=0 + # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= @@ -30,3 +36,6 @@ unset rc export PATH="$HOME/.grok/bin:$PATH" [[ -r "$HOME/.grok/completions/bash/grok.bash" ]] && source "$HOME/.grok/completions/bash/grok.bash" # <<< grok installer <<< + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return \ No newline at end of file diff --git a/bash/.bashrc.d/alias.bash b/bash/.bashrc.d/alias.bash new file mode 100644 index 0000000..4cb6df6 --- /dev/null +++ b/bash/.bashrc.d/alias.bash @@ -0,0 +1,5 @@ +## Alias +alias ls='ls --color=auto -al' +alias grep='grep --color=auto' +alias vim='nvim' +alias vi='nvim' diff --git a/bash/.bashrc.d/git.bash b/bash/.bashrc.d/git.bash new file mode 100644 index 0000000..d180b3b --- /dev/null +++ b/bash/.bashrc.d/git.bash @@ -0,0 +1,16 @@ +if [ -f "/usr/share/git/completion/git-prompt.sh" ]; then + source /usr/share/git/completion/git-prompt.sh + export GIT_PS1_SHOWDIRTYSTATE=1 # shows * if unstaged, + if staged + export GIT_PS1_SHOWSTASHSTATE=1 # shows $ if stashed + export GIT_PS1_SHOWUNTRACKEDFILES=1 # shows % if untracked files + export GIT_PS1_SHOWUPSTREAM="auto" # shows < > = behind/ahead/equal + export GIT_PS1_SHOWDIRTYSTATE= + export GIT_PS1_SHOWSTASHSTATE= + export GIT_PS1_SHOWUNTRACKEDFILES= + export GIT_PS1_SHOWUPSTREAM= + + PS1='\[\e[32m\]\u@\h\[\e[0m\] \W$(__git_ps1) \$ ' +else + printf "Cannot find /usr/share/git/completion/git-prompt.sh\n" + PS1='[\u@\h \W]\$ ' +fi \ No newline at end of file