diff --git a/CHANGELOG.md b/CHANGELOG.md index 2e1df09..d087339 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### master - run all *.tmux plugin files as executables +- fix all redirects to /dev/null ### v0.0.1, 2014-05-21 - get TPM up and running diff --git a/scripts/key_binding.sh b/scripts/key_binding.sh index 05c3a88..f3a34d9 100755 --- a/scripts/key_binding.sh +++ b/scripts/key_binding.sh @@ -3,4 +3,4 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # (I)nstalls all plugins -tmux bind-key I run-shell "$CURRENT_DIR/sync_plugins.sh 2>&1 1>&/dev/null" +tmux bind-key I run-shell "$CURRENT_DIR/sync_plugins.sh >/dev/null 2>&1" diff --git a/scripts/source_plugins.sh b/scripts/source_plugins.sh index 4a96ef7..483ec7e 100755 --- a/scripts/source_plugins.sh +++ b/scripts/source_plugins.sh @@ -12,7 +12,7 @@ silently_source_all_tmux_files() { local plugin_tmux_files="$plugin_path*.tmux" for tmux_file in $plugin_tmux_files; do # runs *.tmux file as an executable - $tmux_file 2>&1 1>&/dev/null + $tmux_file >/dev/null 2>&1 done } diff --git a/scripts/sync_plugins.sh b/scripts/sync_plugins.sh index fc2262b..633a146 100755 --- a/scripts/sync_plugins.sh +++ b/scripts/sync_plugins.sh @@ -74,7 +74,7 @@ sync_plugins() { } reload_tmux_environment() { - tmux source-file ~/.tmux.conf 2>&1 1>&/dev/null + tmux source-file ~/.tmux.conf >/dev/null 2>&1 } main() { diff --git a/tpm b/tpm index 5e39d29..92199fa 100755 --- a/tpm +++ b/tpm @@ -9,7 +9,7 @@ CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Put this in `.tmux.conf` to override the default: # `set-environment -g TMUX_PLUGIN_MANAGER_PATH "/some/other/path/"` set_tpm_path() { - $CURRENT_DIR/scripts/set_tpm_path.sh 2>&1 1>&/dev/null + $CURRENT_DIR/scripts/set_tpm_path.sh >/dev/null 2>&1 } # 1. Fetches plugin names from `@tpm_plugins` user variable. @@ -18,7 +18,7 @@ set_tpm_path() { # - no errors raised if directory does not exist # Files are sourced as tmux config files, not as shell scripts! source_plugins() { - $CURRENT_DIR/scripts/source_plugins.sh 2>&1 1>&/dev/null + $CURRENT_DIR/scripts/source_plugins.sh >/dev/null 2>&1 } # Defines key binding: