44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
import Shell from "#components/Shell.astro"
|
|
import Command from "#components/Shell/Command.astro"
|
|
|
|
cleaned up `$PROMPT` a bit on servers today :3
|
|
|
|
previously, <object /> had to remember which host it was on when using ssh:
|
|
|
|
<Shell>
|
|
<Command host="ber1" cmd="whoami" root style="minimal" cwd="/etc/bird" />
|
|
root
|
|
<Command host="owl" cmd="whoami" style="minimal" cwd="~/.config" />
|
|
ana
|
|
</Shell>
|
|
|
|
now it's using `$RPROMPT` to display the hostname:
|
|
|
|
<Shell>
|
|
<Command host="ber1" cmd="whoami" root cwd="/etc/bird" />
|
|
root
|
|
<Command host="owl" cmd="whoami" cwd="~/.config" />
|
|
ana
|
|
</Shell>
|
|
|
|
tiny change but really useful :]
|
|
|
|
```diff
|
|
- PROMPT='%F{magenta}%~ %# %f'
|
|
+ PROMPT='%F{magenta}%~ %F{8}%# %f'
|
|
+ RPROMPT='%F{8}%m%f'
|
|
```
|
|
|
|
here's a screenshot of how it looks on <object />'s different servers:
|
|
|
|
 is using p10k, so they look slightly different")
|
|
|
|
oh, and for showcasing this:
|
|
- built little `<Shell />` and `<ShellCommand />` components
|
|
- added some theming to astro's code blocks
|
|
- made a custom shiki theme that matches the rest of the colors :3
|