silverbulletmd / silverbullet

The hackable notebook
https://silverbullet.md
MIT License
2.03k stars 140 forks source link

Remove dollar before commands in "shell" block #834

Closed Maarrk closed 3 months ago

Maarrk commented 3 months ago

With the blocks consistently having the shell specifier, the dollar sign is not needed to indicate these lines are terminal commands. There is also no need to differentiate user $ and root # shell, since the lines contain sudo whenever root privileges are required.

This significantly improves UX considering #735

Credit goes to Russ Williams (rlw1138) for suggesting this https://community.silverbullet.md/t/copy-to-clipboard/351


Since the majority of command blocks used the shell info string, I changed the few bash ones to match (as a proud zsh user).

zefhemel commented 3 months ago

Thanks 👍🏻