Skip to content

Instantly share code, notes, and snippets.

@aphilas
Created July 29, 2023 10:25
Show Gist options
  • Save aphilas/93663bfc64dee29a574744b629043724 to your computer and use it in GitHub Desktop.
Save aphilas/93663bfc64dee29a574744b629043724 to your computer and use it in GitHub Desktop.
Barebones bash config
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
# add keychain
eval $(keychain --eval --quiet --confhost --noask)
# add git completions - https://stackoverflow.com/a/18898614
if [ -f /usr/share/bash-completion/completions/git ]; then
source /usr/share/bash-completion/completions/git
fi
# search cheatsheets
cheat() {
curl "http://cheat.sh/$1"
}
# upload to ix.io
alias ix.io="curl -F 'f:1=<-' ix.io"
# add fzf shell integration
source /usr/share/fzf/completion.bash && source /usr/share/fzf/key-bindings.bash
HISTSIZE=10000
HISTFILESIZE=10000
TAB: menu-complete
"\e[Z": menu-complete-backward
set completion-ignore-case On
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment