Oh My Posh a beautiful prompt for your shell

Oh My Posh is a custom prompt engine for any shell that has the ability to adjust the prompt string with a function or variable. It’s beautiful, elegant and intuitive; if you use git from the command line it will be great for you, it has several predefined themes that allow you to customize your prompt in a matter of seconds, it is also possible to create your own theme, it is compatible with BASH, PowerShell, CMD, Fish, Zsh and nushell is developed in golang and can be installed on GNU/Linux, MacOS, Windows and Termux (Android).

Shell script to rename to lowercase files and directories


In the GNU/Linux world, it is common to use lowercase characters to identify files and directories, to illustrate the above we show the DIRs that are found under the /etc/apache2 DIR on Debian GNU/Linux

├── conf-available
├── conf-enabled
├── mods-available
├── mods-enabled
├── sites-available
└── sites-enabled

so if you have one or several DIRs in uppercase or lowercase and uppercase at the same time and for uniformity want to all be lowercase then you can rely on the following script.

[githubget repo=1]sysadmin/shscript/[/githubget]

To use the script download here

Set execute permissions
chmod a+x
Run the script
./ nombre-del-fichero

Further readings

  • man find
  • man tr