Environment Variables¶
export
unset
Tips and Traps¶
explainshell.com is a great place for learning shell.
Bash-it/bash-it is a great community driven Bash framework.
It is suggested that you avoid writing complicated Bash scripts. IPython is a much better alternative.
Do NOT use
;
to delimit paths passed to a shell command because;
Shell in Docker
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Configure the Shell for the RUN
Command
https://docs.docker.com/engine/reference/builder/#shell
Configure the Default Shell for Terminals in Docker Containers
Just set the SHELL environment variable in …
Parse Arguments in Bash
Use the Watch Command to Monitor Running Applications
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Report the number of PNG images in the directory 000
every 2 seconds.
watch "ls 000/*.png | wc -l"
Hands on the highlight command
https://linux.die.net/man/1/highlight
highlight -O ansi
highlight -O xterm256
pygmentize
alias c='pygmentize -g'
Tips on Xonsh
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
https://github.com/xonsh/xonsh/wiki/Cheatsheet
Tricks and Traps
-
While
$()
in xonsh works similar to$()
in (all variants of) shell, it cannot be used in the middle of argument of …