From 1e503540048d8fe7036f24499c834ab9dc42cb44 Mon Sep 17 00:00:00 2001 From: buffet Date: Mon, 2 May 2022 08:25:42 +0000 Subject: [PATCH] Add cargo stuff, increase histsize --- bash/.bashrc | 12 +++++------- profile/.profile | 4 ++-- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/bash/.bashrc b/bash/.bashrc index 8c3df15..198e542 100644 --- a/bash/.bashrc +++ b/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)" diff --git a/profile/.profile b/profile/.profile index 6472f6b..eeec0fe 100644 --- a/profile/.profile +++ b/profile/.profile @@ -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"