Browse Source

shell config: more consistent use of ~/.histfile; update path

exuberance
Brennen Bearnes 8 years ago
parent
commit
a4cc6f7787
3 changed files with 11 additions and 7 deletions
  1. +6
    -3
      home/.bashrc
  2. +2
    -1
      home/.sh_common
  3. +3
    -3
      home/.zshrc

+ 6
- 3
home/.bashrc View File

@ -1,16 +1,19 @@
# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups
export HISTSIZE=10000
export HISTFILESIZE=120000
export HISTSIZE=-1
export HISTFILESIZE=-1
export HISTFILE=~/.histfile
# append to the history file, don't overwrite it
shopt -s histappend
PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# change to a directory with just its name:
shop -s autocd
shopt -s autocd
# ideally we want to use this prompt...
#


+ 2
- 1
home/.sh_common View File

@ -4,7 +4,8 @@ export GOPATH=~/gocode
# - a custom Firefox install
# - some bin dirs in my homedir
# - golang
export PATH=~/firefox:~/bin:~/sw/bin:/usr/local/bin:$PATH:$GOPATH/bin:~/.local/bin/
# - some Chef bullshit
export PATH=~/firefox:~/bin:~/sw/bin:/usr/local/bin:$PATH:$GOPATH/bin:~/.local/bin/:~/.chefdk/gem/ruby/2.3.0/bin
# Misc environment variables
export DEBEMAIL="bbearnes@gmail.com"


+ 3
- 3
home/.zshrc View File

@ -1,9 +1,9 @@
# my zsh config file. one day, i will actually learn about zsh instead
# of just haphazardly tossing crap at it.
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=120000
export HISTFILE=~/.histfile
export HISTSIZE=15000
export SAVEHIST=9999999
setopt menu_complete
setopt prompt_subst
setopt inc_append_history


|||||||
x
 
000:0
Loading…
Cancel
Save