summaryrefslogtreecommitdiffstats
path: root/clerk_fzf
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2016-08-16 01:24:15 +0200
committerRasmus Steinke <rasi@xssn.at>2016-08-16 01:24:15 +0200
commit875963bcae095ac1db174627183c76ebe165f787 (patch)
tree0349466047d56d562e0e57d374d088c9e73c3b39 /clerk_fzf
parente9b11ac45cb2fef5092a59ee7ed64259163fe8b8 (diff)
downloadperl-app-clerk-875963bcae095ac1db174627183c76ebe165f787.tar.gz
perl-app-clerk-875963bcae095ac1db174627183c76ebe165f787.tar.xz
check config
Diffstat (limited to 'clerk_fzf')
-rwxr-xr-xclerk_fzf/clerk_update11
1 files changed, 11 insertions, 0 deletions
diff --git a/clerk_fzf/clerk_update b/clerk_fzf/clerk_update
index 319b7b9..0dca425 100755
--- a/clerk_fzf/clerk_update
+++ b/clerk_fzf/clerk_update
@@ -2,6 +2,17 @@
TMUX_TMPDIR="/tmp/clerk/tmux"
+# read global config
+if [[ -f "/etc/clerk_fzf.conf" ]]; then
+ source /etc/clerk_fzf.conf
+fi
+
+# read user config
+if [[ -f "$HOME/.config/clerk/clerk_fzf.conf" ]]; then
+ source $HOME/.config/clerk/clerk_fzf.conf
+fi
+
+
screen=$(tmux list-panes -F "#W")
if [[ $1 == "--create-caches" ]]; then