Add cargo stuff, increase histsize
This commit is contained in:
parent
c28bfa547f
commit
1e50354004
2 changed files with 7 additions and 9 deletions
12
bash/.bashrc
12
bash/.bashrc
|
@ -2,8 +2,8 @@
|
|||
[[ $- != *i* ]] && return
|
||||
|
||||
shopt -s cdspell checkjobs extglob globstar histappend nocaseglob
|
||||
HISTSIZE=50000
|
||||
HISTCONTROL=erasedups:ignorespace
|
||||
HISTFILE="$XDG_CACHE_HOME/bash_history"
|
||||
|
||||
alias ..='cd ..'
|
||||
alias cd..='cd ..'
|
||||
|
@ -16,15 +16,10 @@ t() {
|
|||
case $1 in
|
||||
u*) git -C ~/todo commit -am 'docs: update' && git -C ~/todo push ;;
|
||||
p*) git -C ~/todo pull ;;
|
||||
*) nvim ~/todo/todo ;;
|
||||
*) "$EDITOR" ~/todo/todo ;;
|
||||
esac
|
||||
}
|
||||
|
||||
eval "$(fasd --init auto)"
|
||||
_fasd_bash_hook_cmd_complete v
|
||||
|
||||
eval "$(direnv hook bash)"
|
||||
|
||||
__prompt() {
|
||||
case $? in
|
||||
0) PS1='\[\e[34m\]' ;;
|
||||
|
@ -42,3 +37,6 @@ __prompt() {
|
|||
PS1+='\[\e[0m\] '
|
||||
}
|
||||
PROMPT_COMMAND="__prompt;$PROMPT_COMMAND"
|
||||
. "$HOME/.cargo/env"
|
||||
|
||||
eval "$(direnv hook bash)"
|
||||
|
|
|
@ -10,9 +10,9 @@ export XDG_DATA_DIR="$HOME/.local/share"
|
|||
|
||||
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
|
||||
export LESSHISTFILE="$XDG_CACHE_HOME/less_history"
|
||||
export HISTFILE="$XDG_CACHE_HOME/bash_history"
|
||||
|
||||
export BROWSER=firefox
|
||||
export EDITOR=nvim
|
||||
|
||||
# load nix stuff
|
||||
[ -f ~/.nix-profile/etc/profile.d/nix.sh ] && . ~/.nix-profile/etc/profile.d/nix.sh
|
||||
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
||||
|
|
Loading…
Reference in a new issue