From: Iain Patterson Date: Tue, 20 Mar 2007 18:28:34 +0000 (+0000) Subject: Added more shell options. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=5b55ae5ffc76dae9d0f2a7f4312f8398a8d96db7;p=profile.git Added more shell options. Added inputrc rules to stop tab completion getting stuck on symlinks and to print completed entries horizontally. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@41 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.inputrc b/.inputrc index dd5ed22..b912190 100755 --- a/.inputrc +++ b/.inputrc @@ -1,4 +1,7 @@ # $Id$ + +$include /etc/inputrc + set editing-mode vi set meta-flag on set input-meta on @@ -6,6 +9,8 @@ set convert-meta off set output-meta on set bell-style none set show-all-if-ambiguous on -\C-w: backward-kill-word +set completion-ignore-case off +set mark-symlinked-directories on +set print-completions-horizontally on + \C-l: clear-screen -$include /etc/inputrc diff --git a/.profile.d/options.bashrc b/.profile.d/options.bashrc index 34fb1e9..3d87c1f 100644 --- a/.profile.d/options.bashrc +++ b/.profile.d/options.bashrc @@ -1,2 +1,36 @@ # $Id$ +# +# Bash variables and options. +# Some of these are (now) the default but listed for completeness. +# + +# Allow ^D to exit the shell. +set +o ignoreeof + +# vi keys. Not needed if .inputrc is handled properly. +set -o vi + +# Don't cache missing PATH entries. +shopt -s checkhash + +# Don't wait for SIGWINCH. shopt -s checkwinsize + +# Append to history. +shopt -s histappend + +# Don't try to expand hostnames after @. +shopt -u hostcomplete + +# Don't send HUP to jobs on exit. +shopt -u huponexit + +# Handle accidental tab mashing at start of a line. +shopt -s no_emptycmd_completion + +# The Red Hat The +shopt -u nocaseglob + +# Return a null string when no matches are found for a glob, rather than the +# literal pattern. +shopt -s nullglob