Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips on the Fish Shell
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Tips & Traps
- Configuration files of the fish shell are located at
~/.config/fish.
Installation & Configuration
icon makes it easy to install and configure the fish shell.
icon fish -ic
Key Bindings …
Change the Default Shell in Linux
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Atomic Linux Distributions
How to change the default shell in fedora silverblue?
sudo usermod --shell $(which fish) $(id -un)
Mutable Linux Distributions
sudo chsh -s $(which fish) $(id -un)
You have …
Check Whether a Shell Command Exists
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Python
shutil.which
Fish
Check for Existence of Commands in the Fish Shell
Bash
which
Reference
-
https://stackoverflow.com/questions/11210104/check-if-a-program-exists-from-a-python-script/34177358
-
https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script
Check for Existence of Commands in the Fish Shell
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Fish has built-in function type and command
which are preferred to the external command which.
For details,
please refer to
chat with Geminie
.
Generating Completions Script Using crazy-complete
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
There are many tools for generating completion scripts for shell languages (bash, zsh, fish, etc), crazy-complete is one of the best among such tools.
ldc -h | crazy-complete --input-type=help …