Update bashrc, gitconfig, tigrc

main
Yax 4 years ago
parent a014f5656f
commit 21187520a8

@ -14,6 +14,22 @@
bind '"\e[A":history-search-backward' bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward' bind '"\e[B":history-search-forward'
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# EDITOR # EDITOR
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
@ -68,6 +84,8 @@ alias dmesg='dmesg -T'
alias grep='grep --color' alias grep='grep --color'
alias vi='/usr/bin/vim' alias vi='/usr/bin/vim'
alias serve="python3 -m $(python3 -c 'import sys; print("http.server" if sys.version_info[:2] > (2,7) else "SimpleHTTPServer")')"
#---------------------------------------------------------------------------- #----------------------------------------------------------------------------
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
@ -88,3 +106,12 @@ fi
if [ -f "$HOME/.pythonz/pythons/CPython-3.9.1/bin/pew" ]; then if [ -f "$HOME/.pythonz/pythons/CPython-3.9.1/bin/pew" ]; then
source "$(pew shell_config)" source "$(pew shell_config)"
fi fi
# -------------------------------------------------------------
# Source all .bashrc files
# -------------------------------------------------------------
for file in ~/.bashrc.d/*.bashrc; do
. "$file"
done

@ -3,6 +3,8 @@
name = {{ .git_alias }} name = {{ .git_alias }}
[pull] [pull]
rebase = false rebase = false
[push]
default = current
[alias] [alias]
a = add a = add
c = commit c = commit
@ -17,3 +19,5 @@
p = push -u origin p = push -u origin
pu = pull pu = pull
s = status s = status
[include]
path = ~/.gitconfig_custom.inc

@ -2,5 +2,5 @@
bind status P !git p bind status P !git p
# Delete file # Delete file
bind status ! !rm %(file) #bind status ! !rm %(file)

Loading…
Cancel
Save