nexus published, nexus index source, bash index source
bash terminalThese 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.
Terminal application
Ubuntu (a user-friendly distribution built on Debian Linux)
bash: the command line interface to Linux, access to operating system servicesssh to a cloud VM; similar issuesbash and the vim editor
ls produces a lot of colorizing(active-env) cloud$ ls -al .bash* to see bashrc-related files.bashrc# 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
source ~/.bashrcls -al againFor green text type this on the command line: echo -e "Default \e[32mDefault"
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).
~/.bashrc' in vi, scroll past the $PS1` stuff
$PS1 is a variable for the default bash promptPS1="my computer> "
source ~/.bashrcNow 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>.
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:
dircolors -b >> .bashrc appends the current ls color scheme to .bashrc.bashrc and go to the end of the fileLS_COLORS=`rs=0:di=01;34....etcetera etcetera etceters....;export LS_COLORS`
di (directory) and set it to di=01;32.source ~/.bashrcls -alvi fixvi 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
vi to verify this worked