This commit is contained in:
2019-01-12 18:22:02 +01:00
commit ef6928d257
81 changed files with 6009 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# Default values for non segment configuration options.
export TMUX_POWERLINE_DEBUG_MODE_ENABLED_DEFAULT="false"
export TMUX_POWERLINE_PATCHED_FONT_IN_USE_DEFAULT="true"
export TMUX_POWERLINE_THEME_DEFAULT="paramah"

View File

@ -0,0 +1,9 @@
# Other settings and helper functions.
debug_mode_enabled() {
[ -n "$TMUX_POWERLINE_DEBUG_MODE_ENABLED" -a "$TMUX_POWERLINE_DEBUG_MODE_ENABLED" != "false" ];
}
patched_font_in_use() {
[ -z "$TMUX_POWERLINE_PATCHED_FONT_IN_USE" -o "$TMUX_POWERLINE_PATCHED_FONT_IN_USE" != "false" ];
}

View File

@ -0,0 +1,14 @@
# Paths
export TMUX_POWERLINE_DIR_LIB="$TMUX_POWERLINE_DIR_HOME/lib"
export TMUX_POWERLINE_DIR_SEGMENTS="$TMUX_POWERLINE_DIR_HOME/segments"
export TMUX_POWERLINE_DIR_TEMPORARY="/tmp/tmux-powerline_${USER}"
export TMUX_POWERLINE_DIR_THEMES="$TMUX_POWERLINE_DIR_HOME/themes"
if [ -z "$TMUX_POWERLINE_RCFILE" ]; then
export TMUX_POWERLINE_RCFILE="$HOME/.tmux-powerlinerc"
fi
export TMUX_POWERLINE_RCFILE_DEFAULT="${TMUX_POWERLINE_RCFILE}.default"
if [ ! -d "$TMUX_POWERLINE_DIR_TEMPORARY" ]; then
mkdir "$TMUX_POWERLINE_DIR_TEMPORARY"
fi

View File

@ -0,0 +1,20 @@
# Shell Configuration
# vi: sw=8 ts=8 noet
ostype() { echo $OSTYPE | tr '[A-Z]' '[a-z]'; }
export SHELL_PLATFORM='unknown'
case "$(ostype)" in
*'linux'* ) SHELL_PLATFORM='linux' ;;
*'darwin'* ) SHELL_PLATFORM='osx' ;;
*'bsd'* ) SHELL_PLATFORM='bsd' ;;
esac
shell_is_linux() { [[ $SHELL_PLATFORM == 'linux' || $SHELL_PLATFORM == 'bsd' ]]; }
shell_is_osx() { [[ $SHELL_PLATFORM == 'osx' ]]; }
shell_is_bsd() { [[ $SHELL_PLATFORM == 'bsd' || $SHELL_PLATFORM == 'osx' ]]; }
export -f shell_is_linux
export -f shell_is_osx
export -f shell_is_bsd