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

Powershell on Windows for GitHub Actions

Posted on Nov 23, 2025 in Computer Science • Tagged with Computer Science, programming, GitHub Actions, CICD, development, Windows, PowerShell

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

PowerShell on Windows

Set PATH

echo "::add-path::./swigwin-4.0.1"

echo %programfiles% echo ::set-env name=ProgramFilesPath::%programfiles%

https://stackoverflow.com/questions/60169752/how-to-update-the-path-in-a-github-action-workflow-file-for-a-windows-latest-hos

https://docs.github.com …


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

Editing Shell Commands Using Vim

Posted on Jul 22, 2024 in Computer Science • Tagged with Computer Science, programming

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.

  1. A bash prompt can be editted in both Vi mode and Emacs …


Continue reading

Tips on Zoxide

Posted on May 08, 2025 in Computer Science • Tagged with Computer Science, programming, shell, zoxide

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

fzf + find + cd is a better solution than zoxide.

zoxide is a smarter cd command for your terminal.


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