new bash settings from arch
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
## Alias
|
||||
alias ls='ls --color=auto -al'
|
||||
alias grep='grep --color=auto'
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user