dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit d00c628ed89089c5ea68d8e759fe81aa23c911f4 (patch)
parent 11256d8f946690f4dff5145ff1a73ed7ff517ee3
Author: Alexander Karle <akarle@umass.edu>
Date:   Wed,  2 May 2018 02:58:27 -0400

Update README to fix install bug

Also adding some bash settings from default .bashrc

Diffstat:
MREADME.md | 4+++-
Mbash/bashrc | 18++++++++++++++++++
2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md @@ -8,6 +8,8 @@ My dotfiles. ## Install +Note that bash is required for this install (as some of the interactive options depend on bash). + ``` -curl -fsSL https://raw.githubusercontent.com/akarle/dotfiles/master/install.sh | bash +bash -c "$(curl -fsSL https://raw.githubusercontent.com/akarle/dotfiles/master/install.sh)" ``` diff --git a/bash/bashrc b/bash/bashrc @@ -1,3 +1,6 @@ +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + # if interactive shell, disable XON/XOFF to allow forward search w CTRL-S [[ $- == *i* ]] && stty -ixon @@ -6,3 +9,18 @@ for file in ~/.{bash_path,bash_prompt,bash_exports,aliases}; do [ -r "$file" ] && source "$file" done unset file + +# don't put duplicate lines or lines starting with space in the history. +# See bash(1) for more options +HISTCONTROL=ignoreboth + +# append to the history file, don't overwrite it +shopt -s histappend + +# for setting history length see HISTSIZE and HISTFILESIZE in bash(1) +HISTSIZE=1000 +HISTFILESIZE=2000 + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize