Created
July 29, 2023 10:25
-
-
Save aphilas/93663bfc64dee29a574744b629043724 to your computer and use it in GitHub Desktop.
Barebones bash config
This file contains 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
# | |
# ~/.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 |
This file contains 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
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