.bashrc: tmux terminal is color.

This commit is contained in:
Ole Tange 2021-12-27 18:23:22 +01:00
parent 13b4326435
commit df08db72c7
3 changed files with 12 additions and 3 deletions

View file

@ -16,3 +16,4 @@ format_disk /dev/sdk freenet80GB2
format_disk /dev/sdm freenet160GB
zpool create -O mountpoint=/freenet freenetpool freenet160GB freenet80GB freenet80GB2 freenet1TB
# zpool add freenetpool freenet100GB

View file

@ -31,11 +31,11 @@ set_color_prompt() {
PERL_HASH_SEED=9 perl -MB -e '
use B;
# color combinations that are readable (e.g. no red on red)
@c =(map { "$_\n0\n" }
@c =((map { "$_\n0\n" }
6..7,9..11,13..15,40..51,75..87,113..123,147..159,171..231,249..254),
(map { "$_\n231\n" }
1..9,12..13,16..45,52..81,88..116,124..151,153,160..180,
182..185,187..189,196..214,232..252,255..254);
182..185,187..189,196..214,232..252,255..254));
for(@ARGV) {
srand(hex(B::hash($_))+$ENV{PERL_HASH_SEED});
print @c[rand()* ($#c+1)];
@ -58,6 +58,9 @@ xterm-256color)
screen-256color)
set_color_prompt
;;
screen)
set_color_prompt
;;
*)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
;;
@ -163,7 +166,7 @@ m2grep() {
(play -q -n synth sine F2 sine C3 remix - fade 0 4 .1 norm -20 bend 0.5,2477,2 fade 0 4.0 0.5 2>/dev/null &) 2>/dev/null
alias y=idok
alias y='idok -port $((RANDOM+2000))'
# gqview ui?
#export QT_SCALE_FACTOR=2
@ -241,3 +244,7 @@ ORACLE_HOME=/usr/lib/oracle/19.6/client64
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_HOME
export ORACLE_SID=XE
ppid() { ps -o ppid -p "$@" | tail -n1; }
# Add dotnet + go binaries
export PATH="$PATH:$HOME/.dotnet/tools:$HOME/go/bin"

View file

@ -68,3 +68,4 @@ set -g monitor-activity off
unbind C-b
set-option -g prefix ½
bind-key ½ send-prefix
set -g mouse off