7 Commits

Author SHA1 Message Date
9baadfbb1e Bump version to 0.12.3 2017-04-27 18:59:38 +01:00
2adc885bb8 Fix issue with using a tmux version compiled source
Resolves #79.

When tmux is compiled from source the version string is "master" which
the tmux-version command didn't deal with correctly.
2017-04-27 18:59:38 +01:00
7cc0fa2d0e Fix typo in help text of tmux-version command 2017-04-27 18:59:38 +01:00
7aeeaf31d1 Merge pull request #71 from Yuki-Inoue/balance-windows-layout-helpers
Add balance_window helper methods
2016-04-28 18:35:42 +01:00
ca6dcfaaf2 Merge pull request #72 from Yuki-Inoue/fix-ci-use-github
Fix tmux sourcecode url to github
2016-04-28 18:30:26 +01:00
Yuki Inoue
fdbb1704e0 Fix tmux sourcecode url to github
The sourceforge project of tmux seems to have been removed.  So,
wgetting from github releases instead of sourceforge.
2016-04-28 22:08:30 +09:00
Yuki Inoue
499c5abd83 Add balance_window helper methods 2016-04-28 15:17:05 +09:00
4 changed files with 21 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ env:
before_install: before_install:
- sudo apt-get update - sudo apt-get update
- sudo apt-get install -y bc build-essential libevent-dev libncurses5-dev - sudo apt-get install -y bc build-essential libevent-dev libncurses5-dev
- wget http://downloads.sourceforge.net/tmux/tmux-${TMUX_VERSION}.tar.gz - wget https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz
- tar -zxf tmux-${TMUX_VERSION}.tar.gz - tar -zxf tmux-${TMUX_VERSION}.tar.gz
- cd tmux-${TMUX_VERSION} - cd tmux-${TMUX_VERSION}
- ./configure && make && sudo make install - ./configure && make && sudo make install

View File

@@ -105,6 +105,14 @@ select_pane() {
tmuxifier-tmux select-pane -t "$session:$window.$1" tmuxifier-tmux select-pane -t "$session:$window.$1"
} }
balance_windows_vertical() {
tmuxifier-tmux select-layout even-vertical
}
balance_windows_horizontal() {
tmuxifier-tmux select-layout even-horizontal
}
# Send/paste keys to the currently active pane/window. # Send/paste keys to the currently active pane/window.
# #
# Arguments: # Arguments:

View File

@@ -11,7 +11,7 @@ if calling-help "$@"; then
Outputs current Tmux version. If given optional target-version it outputs one Outputs current Tmux version. If given optional target-version it outputs one
of three possible characters indicating if the current Tmux version number is of three possible characters indicating if the current Tmux version number is
equal to, less than, or greater than the [target-version]. equal to, less than, or greater than the <target-version>.
The three possible outputs are \"=\", \"<\", and \">\"." The three possible outputs are \"=\", \"<\", and \">\"."
exit exit
@@ -44,7 +44,16 @@ vercomp () {
version=$(tmux -V) version=$(tmux -V)
version=${version/tmux /} version=${version/tmux /}
if [ -n "$1" ]; then if [ -z "$1" ]; then
echo "$version"
exit
fi
if [ "$version" == "master" ]; then
# When version string is "master", tmux was compiled from source, and we
# assume it's later than whatever the <target-version> is.
echo '>'
else
# Fix for "1.9a" version comparison, as vercomp() can only deal with # Fix for "1.9a" version comparison, as vercomp() can only deal with
# purely numeric version numbers. # purely numeric version numbers.
version=${version//+([a-zA-Z])/} version=${version//+([a-zA-Z])/}
@@ -55,6 +64,4 @@ if [ -n "$1" ]; then
1) echo '>';; 1) echo '>';;
2) echo '<';; 2) echo '<';;
esac esac
else
echo "$version"
fi fi

View File

@@ -13,4 +13,4 @@ Outputs Tmuxifier version."
exit exit
fi fi
echo "0.12.2" echo "0.12.3"