From f287284318d78c95dfba3d7bad86101d7cd7a20d Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Thu, 7 May 2020 11:52:16 -0400 Subject: Emulate 1sh prompts in bash --- home/.bash_profile | 2 ++ home/.bashrc | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 home/.bash_profile create mode 100644 home/.bashrc diff --git a/home/.bash_profile b/home/.bash_profile new file mode 100644 index 00000000..8dd976b3 --- /dev/null +++ b/home/.bash_profile @@ -0,0 +1,2 @@ +. ~/.profile +. ~/.bashrc diff --git a/home/.bashrc b/home/.bashrc new file mode 100644 index 00000000..61c9d191 --- /dev/null +++ b/home/.bashrc @@ -0,0 +1,13 @@ +. ~/.shrc + +alias ls='ls -p --color=auto' +alias grep='grep --color=auto' + +_PS0=${PS0/$'\n'/} +unset PS0 +RPS1=${RPS1/'\?'/'${?/#0/}'} + +rprompt() { + printf '%*s\r' $((COLUMNS - 1)) "${RPS1@P}" +} +PS1='\n\[${_PS0@P}$(rprompt)\]'"${PS1}" -- cgit 1.4.1 class='sub right'>
summary refs log tree commit diff
path: root/bin (unfollow)
Commit message (Collapse)Author
2018-02-02Fix color scaling in gfxxJune McEnroe
The 8-bit RGB palette definitely looks right now.
2018-02-02Rework gfxx controlsJune McEnroe
Also hardcode the right palette for CARDS.DLL.
2018-02-02Add RGB and GRAY macros in gfxxJune McEnroe
2018-02-02Add colorspaces and mirroring to gfxxJune McEnroe
Also 4-bit color and a palette that can't be set yet.
2018-02-01Set auto_pushdJune McEnroe
2018-02-01Uncapitalize "framebuffer"June McEnroe
Oops.
2018-02-01Add fbattJune McEnroe
2018-02-01Blank framebuffer with sampled background on exitJune McEnroe
This should work like 99% of the time, probably.
2018-02-01Add bin/READMEJune McEnroe
2018-02-01Add license notice to gfxxJune McEnroe
2018-02-01Build any target by defaultJune McEnroe
2018-02-01Remove fb.c and color.cJune McEnroe
2018-02-01Add gfxxJune McEnroe
2018-01-31Map \h to sort includesJune McEnroe
2018-01-31Only load 128 glyphs in fbclockJune McEnroe
There's no point loading more than ASCII since it doesn't interpret the unicode table at all.
2018-01-30Style tweak fbclockJune McEnroe
2018-01-30Remove Tarmak and Colemak keylayoutsJune McEnroe
2018-01-29Generalize hnelJune McEnroe
It's like tr for PTYs.
2018-01-29Remove Tarmak remappings from vimJune McEnroe
2018-01-29Switch back to QWERTY on LinuxJune McEnroe
I think the only thing I'll miss is N and E on home row (which was Tarmak 1, if I remember correctly).
2018-01-29Take fbclock font in env varJune McEnroe
2018-01-29Support fbclock fonts wider than 8June McEnroe
2018-01-29Take font path on fbclock argvJune McEnroe
2018-01-29Add fbclockJune McEnroe
2018-01-29Remove color from MakefileJune McEnroe
2018-01-29Set t_Co = 8June McEnroe
Weirdly with t_Co = 16 yellow and bright white weren't showing up on TERM=linux.
2018-01-29Add :Q command aliasJune McEnroe
It seemes I can't take my finger off the shift key fast enough.
2018-01-29Add setuid target for briJune McEnroe
2018-01-28Add init function to fb interfaceJune McEnroe
2018-01-28Add color.cJune McEnroe