Last active
April 27, 2018 01:20
-
-
Save williscool/2410618 to your computer and use it in GitHub Desktop.
my general bashrc
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
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# enable forward search | |
# http://ruslanspivak.com/2010/11/25/bash-history-incremental-search-forward/ | |
# https://bugs.launchpad.net/ubuntu/+source/bash/+bug/80635/comments/12 | |
stty -ixon | |
# User specific aliases and functions | |
source ~/git-completion.bash | |
alias celar='clear' | |
export EDITOR=vim | |
alias ls='ls -GphF' | |
## keep appending history and sync it will all terminal sessions | |
shopt -s histappend | |
export PROMPT_COMMAND="history -a" | |
unset HISTSIZE | |
unset HISTFILESIZE | |
# tbh im not using the vim keybinding in bash its just too much mental overhead lol | |
### setup bash vi mode for vim keybindings | |
##set -o vi | |
### keep ctrl l working with vim mode | |
# https://unix.stackexchange.com/questions/104094/is-there-any-way-to-enable-ctrll-to-clear-screen-when-set-o-vi-is-set | |
###bind -m vi-insert "\C-l":clear-screen |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Check this out next time you are messing around with bash
https://news.ycombinator.com/item?id=16084763