Last active
January 28, 2025 17:39
-
-
Save gboncoffee/f7c6575d6b6b395c4d62328219db54d7 to your computer and use it in GitHub Desktop.
The only four config files that matter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac | |
HISTCONTROL=ignoreboth | |
shopt -s histappend | |
HISTSIZE=1000 | |
HISTFILESIZE=2000 | |
# check the window size after each command and, if necessary, | |
# update the values of LINES and COLUMNS. | |
shopt -s checkwinsize | |
# If set, the pattern "**" used in a pathname expansion context will | |
# match all files and zero or more directories and subdirectories. | |
shopt -s globstar | |
# enable color support of ls and also add handy aliases | |
if [ -x /usr/bin/dircolors ]; then | |
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
alias ls='ls --color=auto' | |
alias dir='dir --color=auto' | |
alias vdir='vdir --color=auto' | |
alias grep='grep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias egrep='egrep --color=auto' | |
fi | |
# enable programmable completion features (you don't need to enable | |
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |
# sources /etc/bash.bashrc). | |
if ! shopt -oq posix; then | |
if [ -f /usr/share/bash-completion/bash_completion ]; then | |
. /usr/share/bash-completion/bash_completion | |
elif [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
fi | |
PS1='\n\h:\w>' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[user] | |
email = [email protected] | |
name = Gabriel G. de Brito | |
[advice] | |
addEmptyPathspec = false | |
[init] | |
defaultBranch = main | |
[format] | |
pretty = oneline | |
[receive] | |
denyCurrentBranch = warn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"*.[c,h]": { | |
"tabsize": 4, | |
"tabstospaces": true | |
}, | |
"*.[cpp,hpp]": { | |
"tabsize": 4, | |
"tabstospaces": true | |
}, | |
"*.go": { | |
"tabsize": 4 | |
}, | |
"*.hs": { | |
"tabsize": 2, | |
"tabstospaces": true | |
}, | |
"*.lua": { | |
"tabsize": 2, | |
"tabstospaces": true | |
}, | |
"*.nix": { | |
"tabsize": 2, | |
"tabstospaces": true | |
}, | |
"autosave": 3, | |
"autosu": true, | |
"colorcolumn": 80, | |
"colorscheme": "simple", | |
"cursorline": false, | |
"diffgutter": true, | |
"hlsearch": true, | |
"hltaberrors": true, | |
"hltrailingws": true, | |
"indentchar": "|", | |
"matchbraceleft": true, | |
"parsecursor": true, | |
"tabsize": 8 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -sg escape-time 0 | |
set -g mouse on | |
set -ag terminal-overrides ",xterm-256color:RGB" | |
set -g default-terminal "tmux-256color" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment