You are not logged in.
Dear Arch-ers,
I am not sure what is causing the problem, but here are two examples:
• When I use the key combo ⌃+← (ctrl+left arrow) in terminal, it prints
;5DThe expected behaviour is jumping one word backwards.
• The terminal prompt, after installing oh-my-zsh looks like:
\[\e[1;37m\]\w `if [ $? = 0 ]; then echo -e '\[\e[1;32m\]'; else echo -e '\[\e[1;31m\]'; fi`\$ \[\e[0m\]I'm sure it's a noob question to the ace Arch users here but would be great if someone can point me in the right direction...
-----------------------------------------------------------------------------------------------------------------------------
SYSTEM: QEMU, Intel i9, KDE plasma.
Last edited by massisenergy (2020-08-13 16:48:59)
Offline
Please edit your first post to give your thread a meaningful title that represents your problem or question.
• When I use the key combo ⌃+← (ctrl+left arrow) in terminal, it prints
;5D
And is this a problem? What do you expect to happen?
• The terminal prompt, after installing oh-my-zsh looks like:
Then remove OMZ. That exists for no other purpose than to royal fubar everything you could imagine and several things you couldn't imagine. Having garbage in your prompt is the least of your concerns with OMZ.
Last edited by Trilby (2020-08-13 00:58:25)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
https://wiki.archlinux.org/index.php/Zsh#Key_bindings
You can also just bindkey the escape code directly (w/o using terminfo) but that might not work w/ all VTEs
Offline
Please edit your first post to give your thread a meaningful title that represents your problem or question.
Edited!
https://wiki.archlinux.org/index.php/Zsh#Key_bindings
You can also just bindkey the escape code directly (w/o using terminfo) but that might not work w/ all VTEs
Great, thanks. Learnt some things there...
Not sure still what was the problem, but for others who might have similar issues, this is the solution:
After installing Arch Linux you may want to beautify your terminal.
Follow the link by seth.
Install oh-my-zsh-git from the AUR (the weird characters still persist).
Install powerlevel10k (now everything looks find as it should). And very fucntional also
Offline
After installing Arch Linux you may want to beautify your terminal.
Follow the link by seth.
You do ab·so·fuck·ing·lute·ly NOT need the behemoth or garbage that is OMZ which is usually just the answer to "why does my shell do this weird stuff?" to get to a powerline bar.
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline
I wish OMZ's fallout was limited to the shell doing weird stuff. I'm been absolutely amazed how after lots of troubleshooting and digging, how significant and confusing system-crippling problems that don't have anything to do with interactive shell use have been traced simply to the presence of OMZ.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline