From df10919f42745193229f8d6aeb722d7f28bb0f7a Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Mon, 7 Nov 2016 21:49:17 +0100 Subject: [PATCH] Automatic weechat configuration. --- install.sh | 12 +++++++++--- weechat.sh | 18 ++++++++++++++++++ 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100755 weechat.sh diff --git a/install.sh b/install.sh index fe0a145..9de25de 100755 --- a/install.sh +++ b/install.sh @@ -37,6 +37,11 @@ git submodule update --init &> /dev/null \ echo "done." +if commandAvailable vim; then + echo "Creating vim directories" + mkdir -p $HOME/.cache/vim/{backup,swap,undo} +fi + installIfAvailable vim installIfAvailable zsh installIfAvailable sqlite3 sqlite @@ -45,9 +50,10 @@ installIfAvailable systemctl systemd installIfAvailable pacman installIfAvailable git -if commandAvailable vim; then - echo "Creating vim directories" - mkdir -p $HOME/.cache/vim/{backup,swap,undo} + +if commandAvailable weechat; then + echo "Setting up weechat settings…" + ./weechat.sh fi if commandAvailable gsettings; then diff --git a/weechat.sh b/weechat.sh new file mode 100755 index 0000000..fbe3f3a --- /dev/null +++ b/weechat.sh @@ -0,0 +1,18 @@ +#!/bin/bash + +weechat -r "$(cat <