Skip to content

Commit

Permalink
Merge pull request thewtex#49 from qqshfox/patch-1
Browse files Browse the repository at this point in the history
fix tmux init
  • Loading branch information
thewtex authored Apr 22, 2017
2 parents 0e227c1 + 26b53ea commit 75b9ea7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tmux-mem-cpu-load.plugin.tmux
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
pushd $CURRENT_DIR #Pushd to the directory where this plugin is located.

# Attempt to rebuild the plugin and log any errors in the tmux display window.
output=$(cmake . 2>&1) || tmux run-shell "echo \"'cmake $CURRENT_DIR' failed.
if output=$(cmake . 2>&1); then tmux run-shell "echo \"'cmake $CURRENT_DIR' failed.
$output
\"" && exit 1
\""; else exit 1; fi

output=$(make 2>&1) || tmux run-shell "echo \"tmux-mem-cpu-load failed to build.
if output=$(make 2>&1); then tmux run-shell "echo \"tmux-mem-cpu-load failed to build.
$output
\"" && exit 1
\""; else exit 1; fi

popd

0 comments on commit 75b9ea7

Please sign in to comment.