From 309766d94c9ef91c2d331f71c995c07c4a521c48 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 27 Apr 2017 21:07:27 -0600 Subject: Moved drawer to tmux plugin --- scripts/bottom_window_drawer.sh | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100755 scripts/bottom_window_drawer.sh (limited to 'scripts/bottom_window_drawer.sh') diff --git a/scripts/bottom_window_drawer.sh b/scripts/bottom_window_drawer.sh deleted file mode 100755 index 7c3dcaf..0000000 --- a/scripts/bottom_window_drawer.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# vim: set filetype=sh : -# -# Author: Cody Hiar -# Date: 2017-04-25 -# -# Purpose: To either close or open a bottom drawer window -# -# Set options: -# e: Stop script if command fails -# u: Stop script if unset variable is referenced -# x: Debug, print commands as they are executed -set -eu - -# Immutable globals -readonly ARGS=( "$@" ) -readonly PROGNAME=$(basename "$0") - -# Main loop of program -main() { - NUM_PANES=$(tmux list-panes | wc -l) - if [[ "$NUM_PANES" == 1 ]]; then - tmux split-window -c '#{pane_current_path}' - tmux resize-pane -t 2 -y 20 - else - tmux kill-pane -t 2 - fi -} -main -- cgit v1.2.3