diff --git a/.config/bash/.bashrc b/.config/bash/.bashrc index 117cfe6..ac73311 100644 --- a/.config/bash/.bashrc +++ b/.config/bash/.bashrc @@ -77,8 +77,14 @@ set_prompt() { PS1_BAT="$(bash-status-bat)" PS1_GIT="$(bash-status-git)" + if [ "$PS1_GIT" == "" ]; then + PS1_GIT="" + else + PS1_GIT="$PS1_GIT " + fi + if [[ -n $(find . -user "$(id -u)" -print -prune -o -prune) ]]; then - dir="\[\033[00;36m\]\w" + dir="\[\033[00;36m\]$(pwd | sed -E -e "s|^$HOME|~|" -e 's|^([^/]*/[^/]*/).*(/[^/]*)|\1..\2|')" else dir="\[\033[00;31m\]\w" fi diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 5d3182a..e3113cf 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -49,6 +49,12 @@ bind-key r source-file /home/solomon/.config/tmux/tmux.conf \; display-message " bind-key b split-window -v bind-key v split-window -h +# Navigate panes. +bind-key -r h select-pane -L +bind-key -r j select-pane -D +bind-key -r k select-pane -U +bind-key -r l select-pane -R + # ----------------------------------------------------------------------------- # Plugin Manager - https://github.com/tmux-plugins/tpm # Step 1) git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm