From df08db72c79fc16bc92195fba3dbc3d6effe0e54 Mon Sep 17 00:00:00 2001 From: Ole Tange Date: Mon, 27 Dec 2021 18:23:22 +0100 Subject: [PATCH] .bashrc: tmux terminal is color. --- hpdisk/usb-freenet | 1 + ubuntu-20.04/home/.bashrc | 13 ++++++++++--- ubuntu-20.04/home/.tmux.conf | 1 + 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/hpdisk/usb-freenet b/hpdisk/usb-freenet index 6224b26..de30bd6 100644 --- a/hpdisk/usb-freenet +++ b/hpdisk/usb-freenet @@ -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 diff --git a/ubuntu-20.04/home/.bashrc b/ubuntu-20.04/home/.bashrc index 2ea5fd4..6b1a01f 100644 --- a/ubuntu-20.04/home/.bashrc +++ b/ubuntu-20.04/home/.bashrc @@ -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" diff --git a/ubuntu-20.04/home/.tmux.conf b/ubuntu-20.04/home/.tmux.conf index 55c8533..204af26 100644 --- a/ubuntu-20.04/home/.tmux.conf +++ b/ubuntu-20.04/home/.tmux.conf @@ -68,3 +68,4 @@ set -g monitor-activity off unbind C-b set-option -g prefix ½ bind-key ½ send-prefix +set -g mouse off