From d00c628ed89089c5ea68d8e759fe81aa23c911f4 Mon Sep 17 00:00:00 2001 From: Alexander Karle Date: Wed, 2 May 2018 02:58:27 -0400 Subject: [PATCH] Update README to fix install bug Also adding some bash settings from default .bashrc --- README.md | 4 +++- bash/bashrc | 18 ++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 94fcce7..3f9fd5f 100644 --- 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 index 8a142b3..5e95ca0 100644 --- 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 -- libgit2 0.28.4