File Name of Bash Script
Posted on Dec 03, 2019 in Computer Science • Tagged with programming, Bash, file name
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.
Do NOT get into this messy shit if you can avoid it! Use Python script instead if you can.
Continue reading
Tips on Bash Completion
Posted on May 06, 2025 in Computer Science • Tagged with Computer Science, programming, shell, bash, completion, complete
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.
It is suggested that you use the fish shell instead of the …
Continue reading
Fix Shell Commands Using fc
Posted on Jul 06, 2025 in Computer Science • Tagged with Computer Science, programming, shell, command, bash, zsh, fc
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.
fzf.history
is a better alternative to fc's core functionality (edit …
Continue reading
The Right Way to Export PATH in Shell
Posted on Nov 09, 2020 in Computer Science • Tagged with Computer Science, Shell, Bash, PATH, bashrc, bash_profile
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.
Some people suggest exporting PATH only in .bash_profile
instead of in .bashrc …
Continue reading
Bash Equivalent of the ifmain Pattern in Python
Posted on Jul 28, 2022 in Computer Science • Tagged with Computer Science, programming, Shell, Bash, ifmain, Python, module, script, function, import, source
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.
#!/usr/bin/env bash
function install_icon.usage() {
cat << EOF
NAME
/scripts/sys …Continue reading
Extended Globbing in Bash
Posted on Jun 04, 2022 in Computer Science • Tagged with Computer Science, programming, bash, shell, glob, globbing, extended
Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.
Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.
Enable Extended Globbing
shopt -s extglob
Or you can run bash with …
Continue reading