aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-07-25 21:12:59 -0300
committerEuAndreh <eu@euandre.org>2018-07-25 21:12:59 -0300
commit3e81516acb5730d42c831b82bb75f60611d1cd23 (patch)
treefa7f58248e116d570f2cf8f352a0b13f5b85036a
parentRemove extra echo debug stmt (diff)
downloaddotfiles-3e81516acb5730d42c831b82bb75f60611d1cd23.tar.gz
dotfiles-3e81516acb5730d42c831b82bb75f60611d1cd23.tar.xz
Don't run locked_init by default
-rw-r--r--bash/aliases.sh2
-rw-r--r--bash/init.sh18
2 files changed, 10 insertions, 10 deletions
diff --git a/bash/aliases.sh b/bash/aliases.sh
index f18cbe2..cd1d17e 100644
--- a/bash/aliases.sh
+++ b/bash/aliases.sh
@@ -36,4 +36,4 @@ alias ,s="git status"
alias ,d="git diff"
alias ,ds="git diff --staged"
-alias ,r="source ~/.bashrc"
+alias ,r="locked_init && source ~/.bashrc"
diff --git a/bash/init.sh b/bash/init.sh
index 981f20c..5c70918 100644
--- a/bash/init.sh
+++ b/bash/init.sh
@@ -14,22 +14,22 @@ locked_init() {
mr inject > /dev/null
printf "(\n" > /tmp/mr-projectile
- sed -E 's/\/home\/andreh/~/' /tmp/mr-repos | awk '{print "\""$1"\""}' >> /tmp/mr-projectile
+ sed -E 's/\/home\/andreh/~/' /tmp/mr-repos | awk '{print "\""$1"/""\""}' >> /tmp/mr-projectile
printf ")" >> /tmp/mr-projectile
cp /tmp/mr-projectile ~/.emacs.d/.cache/projectile-bookmarks.eld
popd > /dev/null
}
-
-touch /tmp/mr-lock
-exec 221>/tmp/mr-lock
-flock -n -e 221 && {
- locked_init
-} || {
- printf "" # noop: couldn't acquire lock
-}
export -f locked_init
+# touch /tmp/mr-lock
+# exec 221>/tmp/mr-lock
+# flock -n -e 221 && {
+# locked_init
+# } || {
+# printf "" # noop: couldn't acquire lock
+# }
+
# Tests
pushd $DOTFILES > /dev/null