mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
Merge branch 'master' of git://majnematic.com/davesdots
This commit is contained in:
commit
cdac686b71
4 changed files with 40 additions and 25 deletions
1
bash/bind
Executable file
1
bash/bind
Executable file
|
@ -0,0 +1 @@
|
||||||
|
bind Space:magic-space
|
|
@ -6,6 +6,9 @@ export HISTSIZE=1000
|
||||||
# ignore both duplicates and whitespace in history
|
# ignore both duplicates and whitespace in history
|
||||||
export HISTCONTROL=ignoreboth
|
export HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
|
# save multiline history as one entry
|
||||||
|
shopt -s cmdhist
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
# append to the history file, don't overwrite it
|
||||||
shopt -s histappend
|
shopt -s histappend
|
||||||
|
|
||||||
|
@ -14,3 +17,8 @@ shopt -s histappend
|
||||||
# check the window size after each command and, if necessary,
|
# check the window size after each command and, if necessary,
|
||||||
# update the values of LINES and COLUMNS.
|
# update the values of LINES and COLUMNS.
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
# extended globing enabled
|
||||||
|
shopt -s extglob
|
||||||
|
|
||||||
|
ulimit -c 0
|
||||||
|
|
2
bashrc
2
bashrc
|
@ -3,12 +3,14 @@
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
|
||||||
|
# common shell utils
|
||||||
if [ -d "${HOME}/.commonsh" ] ; then
|
if [ -d "${HOME}/.commonsh" ] ; then
|
||||||
for file in "${HOME}"/.commonsh/* ; do
|
for file in "${HOME}"/.commonsh/* ; do
|
||||||
. $file
|
. $file
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# extras
|
||||||
if [ -d "${HOME}/.bash" ] ; then
|
if [ -d "${HOME}/.bash" ] ; then
|
||||||
for file in "${HOME}"/.bash/* ; do
|
for file in "${HOME}"/.bash/* ; do
|
||||||
. $file
|
. $file
|
||||||
|
|
|
@ -2,34 +2,38 @@
|
||||||
WORDCHARS=''
|
WORDCHARS=''
|
||||||
|
|
||||||
# disable core dumps
|
# disable core dumps
|
||||||
if ( limit coredumpsize >/dev/null 2>&1) ; then
|
if ( ulimit -c >/dev/null 2>&1 ) ; then
|
||||||
limit coredumpsize 0
|
ulimit -c 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# clear on exit
|
# clear on exit
|
||||||
trap clear 0
|
trap clear 0
|
||||||
|
|
||||||
# shell options
|
# shell options
|
||||||
|
setopt ALWAYS_TO_END # goto end of word on completion
|
||||||
setopt AUTO_CD # directoy command does cd
|
setopt AUTO_CD # directoy command does cd
|
||||||
setopt CORRECT # correct spelling of commands
|
|
||||||
setopt AUTO_PUSHD # cd uses directory stack
|
setopt AUTO_PUSHD # cd uses directory stack
|
||||||
|
setopt BASH_AUTO_LIST # list completions on second tab
|
||||||
|
setopt CDABLE_VARS # cd var works if $var is a directory
|
||||||
setopt CHASE_DOTS # resolve .. in cd
|
setopt CHASE_DOTS # resolve .. in cd
|
||||||
setopt CHASE_LINKS # resolve symbolic links in cd
|
setopt CHASE_LINKS # resolve symbolic links in cd
|
||||||
setopt CDABLE_VARS # cd var works if $var is a directory
|
|
||||||
setopt PUSHD_SILENT # make pushd quiet
|
|
||||||
setopt ALWAYS_TO_END # goto end of word on completion
|
|
||||||
setopt EXTENDED_GLOB # use zsh globbing extensions
|
|
||||||
setopt SH_WORD_SPLIT # split non-array variables
|
|
||||||
setopt BASH_AUTO_LIST # list completions on second tab
|
|
||||||
setopt LIST_ROWS_FIRST # list completions across
|
|
||||||
setopt COMPLETE_IN_WORD # completion works inside words
|
setopt COMPLETE_IN_WORD # completion works inside words
|
||||||
|
setopt CORRECT # correct spelling of commands
|
||||||
|
setopt EXTENDED_GLOB # use zsh globbing extensions
|
||||||
|
setopt INTERACTIVE_COMMENTS # allow comments in interactive shells
|
||||||
|
setopt LIST_ROWS_FIRST # list completions across
|
||||||
setopt MAGIC_EQUAL_SUBST # special expansion after all =
|
setopt MAGIC_EQUAL_SUBST # special expansion after all =
|
||||||
|
setopt PUSHD_SILENT # make pushd quiet
|
||||||
unsetopt BEEP # stop beeping!
|
setopt PROMPT_SUBST # allow substitutions in the prompt
|
||||||
unsetopt LIST_BEEP # seriously, stop beeping!
|
setopt SH_WORD_SPLIT # split non-array variables
|
||||||
|
|
||||||
unsetopt NO_MATCH # dont error on no glob matches
|
unsetopt NO_MATCH # dont error on no glob matches
|
||||||
|
|
||||||
|
# (disable) beeping
|
||||||
|
unsetopt BEEP # stop beeping!
|
||||||
|
unsetopt HIST_BEEP # really, stop beeping!
|
||||||
|
unsetopt LIST_BEEP # seriously, stop beeping!
|
||||||
|
|
||||||
# history
|
# history
|
||||||
export HISTSIZE=1000
|
export HISTSIZE=1000
|
||||||
export SAVEHIST=1000
|
export SAVEHIST=1000
|
||||||
|
|
Loading…
Add table
Reference in a new issue