dot

packages and services management
Log | Files | Refs | README

commit 59f6684441c8ee0f2a8ccba42a2369bd2cf2af8b
parent bbe12d8fcd21cecb9874c19af08b597f65e41015
Author: josuah <mail@josuah.net>
Date:   Wed,  5 Oct 2016 20:31:29 -0400

Hopefully fixed everything about tmux statusline.

Diffstat:
Dbin/.lsync.swp | 0
Mshell/.profile | 6+++---
Mtmux/.config/tmux/new-session | 14+++++++-------
Mtmux/.config/tmux/status | 6+++---
Mtmux/.tmux.conf | 7++++---
5 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/bin/.lsync.swp b/bin/.lsync.swp Binary files differ. diff --git a/shell/.profile b/shell/.profile @@ -65,9 +65,9 @@ alias lla='l -Alh' alias v='$VISUAL' alias p='$PAGER' alias t='tmux' -alias f='find . -type f ! -path "*/.git/*" | fzf' -alias d='find . -type d ! -path "*/.git/*" | fzf' -alias c='cd "$(find . -maxdepth 4 -mindepth 1 -type d | fzf)"' +alias f='find . -type f ! -path "*/.git/*" | fzf --margin=3,6' +alias d='find . -type d ! -path "*/.git/*" | fzf --margin=3,6' +alias c='cd "$(find . -maxdepth 4 -mindepth 1 -type d | fzf --margin=3,6)"' alias a='buffers attach' alias r='buffers run' alias g='grep --color=always' diff --git a/tmux/.config/tmux/new-session b/tmux/.config/tmux/new-session @@ -1,15 +1,15 @@ #!/bin/sh -# __ -# ____ ___ __ /\ ____ ___ ____ ____ \/ ____ ____ -# / __ \ .'__ \ / /\/ / / __/.'__ \ / __/ / __/ /\ / __ \ / __ \ -# / / / // ____// / / /__\ \ / ____/__\ \ __\ \ / // /_/ // / / / -# \/ \/ \___\ \____/ \___/ \___\ \___/ \___/ \/ \____/ \/ \/ 2016-10-05 -#=============================================================================== +# __ /\ +# ____ _____ ____ \/ ___ ____ / /_ +# / __ \ / ____\/ __ \ /\ .'__ \ / ___\ / ___\ +# / /_/ // / / /_/ / / // ____// /__ / / +#/ ____/ \/ \____/_,-" / \___\ \____\ \/ 2016-10-05 +#\/===================\_,-"===================================================== dir="$( find "$HOME/" -maxdepth 3 ! -path '*/.*' -type d | while read line do printf '%s\n' "~${line#$HOME}" - done | fzf --margin=4,8 + done | fzf --margin=3,6 )" cd "$HOME${dir#\~}" diff --git a/tmux/.config/tmux/status b/tmux/.config/tmux/status @@ -29,8 +29,8 @@ SEPARATOR="${SEPARATOR- }" # # 3 The text, with $color as foreground # -# Either of 2 and 3 can be empty, and any can contain aditionnal tmux color -# escape sequences: #[fg=color1,bg=color2,bold] +# Any of them can be empty, and any can contain aditionnal tmux color escape +# sequences: #[fg=color1,bg=color2,bold] segment_mail() { @@ -65,7 +65,7 @@ segment_git() [ "$status" -gt 0 ] && color=red || color=green fi - printf '%s\n' "$color" "$git" "$branch ${status#0}" | tee ~/log + printf '%s\n' "$color" "$git" "$branch ${status#0}" } segment_clock() diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -39,8 +39,8 @@ bind -r > swap-window -t + bind -r p previous-window bind -r n next-window bind -r Tab last-window -bind c new-window -c '#{pane_current_path}' -bind C new-window +bind -r c new-window -c '#{pane_current_path}' +bind -r C new-window # Sessions management bind -n C-z detach @@ -96,7 +96,8 @@ set -g status-left "#[fg=black,bg=white] #S #[default] " # Right set -g status-right-length 50 set -g status-right-style fg=white -set -g status-right " #(~/.config/tmux/status dir git clock)" +set -g status-right \ + " #(~/.config/tmux/status dir git mail clock)" set -g window-status-separator " "