mirror of
https://github.com/jimeh/tmuxifier.git
synced 2026-02-19 09:56:39 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9baadfbb1e | |||
| 2adc885bb8 | |||
| 7cc0fa2d0e | |||
| 7aeeaf31d1 | |||
| ca6dcfaaf2 | |||
|
|
fdbb1704e0 | ||
|
|
499c5abd83 |
@@ -8,7 +8,7 @@ env:
|
||||
before_install:
|
||||
- sudo apt-get update
|
||||
- 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
|
||||
- cd tmux-${TMUX_VERSION}
|
||||
- ./configure && make && sudo make install
|
||||
|
||||
@@ -105,6 +105,14 @@ select_pane() {
|
||||
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.
|
||||
#
|
||||
# Arguments:
|
||||
|
||||
@@ -11,7 +11,7 @@ if calling-help "$@"; then
|
||||
|
||||
Outputs current Tmux version. If given optional target-version it outputs one
|
||||
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 \">\"."
|
||||
exit
|
||||
@@ -44,7 +44,16 @@ vercomp () {
|
||||
version=$(tmux -V)
|
||||
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
|
||||
# purely numeric version numbers.
|
||||
version=${version//+([a-zA-Z])/}
|
||||
@@ -55,6 +64,4 @@ if [ -n "$1" ]; then
|
||||
1) echo '>';;
|
||||
2) echo '<';;
|
||||
esac
|
||||
else
|
||||
echo "$version"
|
||||
fi
|
||||
|
||||
@@ -13,4 +13,4 @@ Outputs Tmuxifier version."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "0.12.2"
|
||||
echo "0.12.3"
|
||||
|
||||
Reference in New Issue
Block a user