Skip to content

Instantly share code, notes, and snippets.

@voidptr
voidptr / .bashrc
Last active April 30, 2024 18:48
Execute Fish Shell from Bash at end of .bashrc -- while being able to invoke Bash shell from fish without re-running Fish -- and without having to use --norc
# Many systems, such as Arch, MSys2, Cygwin, etc., need to have Bash interpret
# their startup scripts, set Environment variables, etc. Therefore, setting your
# default shell to anything other than Bash might not be a good idea. In these
# cases, the conventional advice is to append 'exec fish' at the end of your
# .bashrc. However, this approach creates another problem; should you need to
# drop into Bash to run a bash script, you need to be careful to use
# 'bash --norc' every time. Otherwise, Fish will start up again when you don't
# want it to. Obviously, this is cumbersome and inefficient. Thus, instead of
# doing a naked 'exec fish' at the end of your .bashrc, use the following:
Optimal focus is at (about) 74.5
For best results with material of mm thickness (thk) use:
thk set ("Focus" value [too low])
1 75 (70.5)
2 74 (69.5)
3 73 (68.5)
4 72.5 (67.5)