diff options
Diffstat (limited to '.config/bash')
-rw-r--r-- | .config/bash/logout.sh | 9 | ||||
-rw-r--r-- | .config/bash/rc.d/emacs.sh | 4 | ||||
-rw-r--r-- | .config/bash/rc.sh | 10 |
3 files changed, 15 insertions, 8 deletions
diff --git a/.config/bash/logout.sh b/.config/bash/logout.sh index de4f5f7..5dd8f7d 100644 --- a/.config/bash/logout.sh +++ b/.config/bash/logout.sh @@ -1,7 +1,4 @@ -# ~/.bash_logout: executed by bash(1) when login shell exits. +# ~/.bash_logout: sourced by bash(1) when login shell exits. -# when leaving the console clear the screen to increase privacy - -if [ "$SHLVL" = 1 ]; then - [ -x /usr/bin/clear_console ] && /usr/bin/clear_console -q -fi +# Clear the screen for privacy's sake. +clear diff --git a/.config/bash/rc.d/emacs.sh b/.config/bash/rc.d/emacs.sh index bb6454b..354c8f3 100644 --- a/.config/bash/rc.d/emacs.sh +++ b/.config/bash/rc.d/emacs.sh @@ -1,7 +1,7 @@ #!/bin/bash if [[ $TERM == eterm* ]]; then - SELECTED_EDITOR='emacsclient' + SELECTED_EDITOR="emacsclient -f '$HOME/.emacs.d/server-$HOSTNAME/server'" EDITOR=$SELECTED_EDITOR VISUAL=$SELECTED_EDITOR export SELECTED_EDITOR EDITOR VISUAL @@ -11,7 +11,7 @@ if [[ $TERM == eterm* ]]; then # _emacs_run LISP _emacs_run() { - emacsclient -a false -e "$*" 2>/dev/null + emacsclient -f "$HOME/.emacs.d/server-$HOSTNAME/server" -a false -e "$*" 2>/dev/null } # _emacs_quote UNQUOTED_STRING _emacs_quote() { diff --git a/.config/bash/rc.sh b/.config/bash/rc.sh index ab690cf..15a9865 100644 --- a/.config/bash/rc.sh +++ b/.config/bash/rc.sh @@ -1,4 +1,7 @@ # ~/.bashrc: executed by bash(1) for interactive non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + # I include this file for all interactive invocations of bash(1), whether # they are login shells or not. @@ -78,3 +81,10 @@ if [[ -d ${XDG_CONFIG_HOME}/bash/rc.d ]]; then . "$file" done fi + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if [ -f /etc/bash_completion ]; then + . /etc/bash_completion +fi |