nexus

View the Project on GitHub robfatland/nexus

nexus published, nexus index source, bash index source

the bash terminal

These notes need a big recompile. They were a frustrated response to bash terminal colorization, so reminiscent of fighter pilots turning off all the display clutter in their HUDs.

green and black perhaps?

rewrite paused here…

historical version here down

# enable color support of ls and also add handy aliases
#if [ -x /usr/bin/dircolors ]; then
#    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
#    alias ls='ls --color=auto'
#    #alias dir='dir --color=auto'
#    #alias vdir='vdir --color=auto'
#
#    alias grep='grep --color=auto'
#    alias fgrep='fgrep --color=auto'
#    alias egrep='egrep --color=auto'
#fi

Terminal: cloud VM

green text

For green text type this on the command line: echo -e "Default \e[32mDefault"

prompt fix

The prompt’s job is to tell me which computer I am entering commands on (and possibly whether I am working inside a conda environment).

PS1="my computer> "

Now the prompt tells me when I am working on my local machine. For VMs: Use simple but instructive prompts in like fashion.

A conda environment name will be prepended to this bash prompt. By default this prompt will be (base) my computer> . This is ok by me: When I switch environments by means of conda activate some-environment the prompt will automatically change the prompt to (some-environment) my computer>.

ls fix

To change the colors of the text produced by ls check an online resource like this. The bare-bones to make directory names green is like so:

LS_COLORS=`rs=0:di=01;34....etcetera etcetera etceters....;export LS_COLORS`

vi fix

vi is an ancient text editor with arcane syntax inherited from an even older editor called ed. vim is the modern version of vi.

To disable a profusion of colorized text in vi: In escape mode type :syntax off.

To disable a profusion of colorized text permanently:

vi ~/.vimrc

<escape>
G
o
syntax off
<escape>
:wq