Hi. I’ve been using powerlevel10k for a long time, but a few days ago, I decided I wanted to customize it a bit. I opened the .p10k.zsh file, and I was shocked. It’s really massive, with TONS of options. I’ve been digging through for a few hours already, and it’s absolutely amazing how much you can customize it without...
<span style="color:#323232;"># Prompt
</span><span style="color:#323232;"># "Make it simple, just the dollar sign"
</span><span style="color:#323232;"># "Say no more, fam"
</span><span style="color:#323232;"># - if error code is not 0, then prepend [N] where N is the error code
</span><span style="color:#323232;"># - if user is root, use red and #
</span><span style="color:#323232;">blue='e[34m'
</span><span style="color:#323232;">red='e[31m'
</span><span style="color:#323232;">bold='e[1m'
</span><span style="color:#323232;">reset='e[0m'
</span><span style="color:#323232;">PS1='$( status=$?; [ $status -ne 0 ] && echo "[$status] ")['"$blue""$bold"']$['"$reset"'] '
</span><span style="color:#323232;">
</span><span style="color:#323232;">if [[ $EUID -eq 0 ]]; then
</span><span style="color:#323232;"> PS1='$( status=$?; [ $status -ne 0 ] && echo "[$status] ")['"$red""$bold"']#['"$reset"'] '
</span><span style="color:#323232;">fi
</span>
.inputrc:
<span style="color:#323232;"># vi mode, change to 'emacs' here if you prefer
</span><span style="color:#323232;">set editing-mode vi
</span><span style="color:#323232;">
</span><span style="color:#323232;"># vi INSERT prompt
</span><span style="color:#323232;">set vi-ins-mode-string "1e[30;44m2 INS 1e[0m2 "
</span><span style="color:#323232;">
</span><span style="color:#323232;"># vi NORMAL prompt
</span><span style="color:#323232;">set vi-cmd-mode-string "1e[30;47m2 NOR 1e[0m2 "
</span>
Beachpatrol: A CLI tool to replace and automate your everyday web browser (Wayland support) (github.com)
Sway-Talisman: Sway – Terminal Application Launcher in Scratchpad, Minimalist And Native (github.com)
Sway-MÜSLI: Sway – Minimal Ültrafast Status Line (github.com)
GPL cheat sheet (lemmy.sdf.org)
Introducing UTF-Random — Making Unicode Fair (sebastiancarlos.com)
[Question] Which shell prompt do you use and why?
Hi. I’ve been using powerlevel10k for a long time, but a few days ago, I decided I wanted to customize it a bit. I opened the .p10k.zsh file, and I was shocked. It’s really massive, with TONS of options. I’ve been digging through for a few hours already, and it’s absolutely amazing how much you can customize it without...
How to write a 'tar' command (lemmy.sdf.org)
yas-bdsm: Yet Another Stow-Based Dotfiles System Manager (github.com)