Add cargo stuff, increase histsize

This commit is contained in:
buffet 2022-05-02 08:25:42 +00:00
parent c28bfa547f
commit 1e50354004
2 changed files with 7 additions and 9 deletions

View file

@ -2,8 +2,8 @@
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
shopt -s cdspell checkjobs extglob globstar histappend nocaseglob shopt -s cdspell checkjobs extglob globstar histappend nocaseglob
HISTSIZE=50000
HISTCONTROL=erasedups:ignorespace HISTCONTROL=erasedups:ignorespace
HISTFILE="$XDG_CACHE_HOME/bash_history"
alias ..='cd ..' alias ..='cd ..'
alias cd..='cd ..' alias cd..='cd ..'
@ -16,15 +16,10 @@ t() {
case $1 in case $1 in
u*) git -C ~/todo commit -am 'docs: update' && git -C ~/todo push ;; u*) git -C ~/todo commit -am 'docs: update' && git -C ~/todo push ;;
p*) git -C ~/todo pull ;; p*) git -C ~/todo pull ;;
*) nvim ~/todo/todo ;; *) "$EDITOR" ~/todo/todo ;;
esac esac
} }
eval "$(fasd --init auto)"
_fasd_bash_hook_cmd_complete v
eval "$(direnv hook bash)"
__prompt() { __prompt() {
case $? in case $? in
0) PS1='\[\e[34m\]' ;; 0) PS1='\[\e[34m\]' ;;
@ -42,3 +37,6 @@ __prompt() {
PS1+='\[\e[0m\] ' PS1+='\[\e[0m\] '
} }
PROMPT_COMMAND="__prompt;$PROMPT_COMMAND" PROMPT_COMMAND="__prompt;$PROMPT_COMMAND"
. "$HOME/.cargo/env"
eval "$(direnv hook bash)"

View file

@ -10,9 +10,9 @@ export XDG_DATA_DIR="$HOME/.local/share"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc" export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"
export LESSHISTFILE="$XDG_CACHE_HOME/less_history" export LESSHISTFILE="$XDG_CACHE_HOME/less_history"
export HISTFILE="$XDG_CACHE_HOME/bash_history"
export BROWSER=firefox export BROWSER=firefox
export EDITOR=nvim export EDITOR=nvim
# load nix stuff [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
[ -f ~/.nix-profile/etc/profile.d/nix.sh ] && . ~/.nix-profile/etc/profile.d/nix.sh