dot

packages and services management
Log | Files | Refs | README

commit 0b59a7972d90306b1476e62f2545cf3ef7e69f43
parent 274b38b99e95c2018b17294a99c7b8c9e39ec6c2
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 15 Sep 2018 16:06:41 +0200

less-rainbow prompt

Diffstat:
Mbin/tmp | 2+-
Mdot/bash_profile | 2+-
Mdot/bashrc | 2+-
Adot/tmux.conf | 12++++++++++++
4 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/bin/tmp b/bin/tmp @@ -1,6 +1,6 @@ #!/bin/sh -e -if test $# -gt 1; then; for x in "$@"; do "$0" "$1"; shift; done; fi +test $# -le 1 || for x in "$@"; do "$0" "$1"; shift; done case "$1" in (*.mp3|*.mp4|*.ogg|*.flac|*.opus) diff --git a/dot/bash_profile b/dot/bash_profile @@ -1,3 +1,3 @@ . "$HOME/.profile" -PS1='\[\033[1;$(test $? = 0 && echo 32 || echo 31)m\]\t \[\033[0;1m\]\h\[\033[34m\]\$\[\033[m\] ' +PS1='\[\033[1;$(test $? = 0 && echo 32 || echo 31)m\]"\[\033[0;1m\] \t \h\[\033[34m\]\$\[\033[m\] ' diff --git a/dot/bashrc b/dot/bashrc @@ -1,3 +1,3 @@ . "$HOME/.profile" -PS1='\[\033[1;$(test $? = 0 && echo 32 || echo 31)m\]\t \[\033[0;1m\]\h\[\033[34m\]\$\[\033[m\] ' +PS1='\[\033[1;$(test $? = 0 && echo 32 || echo 31)m\]"\[\033[0;1m\] \t \h\[\033[34m\]\$\[\033[m\] ' diff --git a/dot/tmux.conf b/dot/tmux.conf @@ -0,0 +1,12 @@ +set -g prefix C-Space +bind C-Space send-prefix + +set-window-option -g mode-keys vi + +bind -T root M-p if-shell -F "#{alternate_on}" \ + "send-keys M-p" \ + "copy-mode -e; send-keys -X page-up" + +bind -T root M-n if-shell -F "#{alternate_on}" \ + "send-keys M-n" \ + "copy-mode -e; send-keys -X page-down"