Created
May 8, 2018 08:15
-
-
Save ticktricktrack/0c16c274a16020294b96c3c33558406c to your computer and use it in GitHub Desktop.
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
alias rg="rg --smart-case -g='!*.json' -g='!*.svg' --hidden" | |
alias ag="rg" | |
export HISTFILESIZE=30000 | |
export HISTSIZE=30000 | |
# Avoid duplicates | |
export HISTCONTROL=ignoreboth:erasedups | |
export HISTIGNORE="atom*:ag*:rg*:cat*:history:subl*:touch*:g:ls:rm*:mv*:cp*:ll:cd*:push:pull:git*:GS_ENV=live*" | |
# When the shell exits, append to the history file instead of overwriting it | |
shopt -s histappend | |
# After each command, append to the history file and reread it | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND$'\n'}history -a; cat ~/.bash_history | nl|sort -k2 -k 1,1nr|uniq -f1|sort -n|cut -f2 > ~/.foo; mv ~/.foo ~/.bash_history; history -c;history -r" | |
export FZF_DEFAULT_OPTS='--height 100%' | |
[ -f ~/.fzf.bash ] && source ~/.fzf.bash |
andypalmer
commented
May 8, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment