1
0
Fork 0
mirror of synced 2024-06-12 20:11:11 -04:00

Fix all redirects to /dev/null

This commit is contained in:
Bruno Sutic 2014-05-23 14:18:22 +02:00
parent 7c385390d7
commit 518777cfbd
5 changed files with 6 additions and 5 deletions

View file

@ -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

View file

@ -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"

View file

@ -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
}

View file

@ -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() {

4
tpm
View file

@ -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: