diff --git a/.bashrc b/.bashrc index 2e0c238..5358a8f 100644 --- a/.bashrc +++ b/.bashrc @@ -29,6 +29,14 @@ if [ -s "${COREUTILS}" ]; then fi #-------------------------------------------------------------------------------- +#-------------------------------------------------------------------------------- +# Rebind CTRL-T to search forward in history +#-------------------------------------------------------------------------------- +if [ -n "$PS1" ]; then + bind "\C-t":forward-search-history +fi +#-------------------------------------------------------------------------------- + #-------------------------------------------------------------------------------- # A useful prompt #-------------------------------------------------------------------------------- @@ -74,14 +82,6 @@ alias gitx='open -a GitX .' export GOPATH=${HOME}/src/go #-------------------------------------------------------------------------------- -#-------------------------------------------------------------------------------- -# Rebind CTRL-T to search forward in history -#-------------------------------------------------------------------------------- -if [ -n "$PS1" ]; then - bind "\C-t":forward-search-history -fi -#-------------------------------------------------------------------------------- - #-------------------------------------------------------------------------------- # Add bash completion scripts #--------------------------------------------------------------------------------