summaryrefslogtreecommitdiff
path: root/.config/bash
diff options
context:
space:
mode:
Diffstat (limited to '.config/bash')
-rw-r--r--.config/bash/rc.d/emacs.sh4
-rw-r--r--.config/bash/rc.sh10
2 files changed, 12 insertions, 2 deletions
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