Improve zsh prompt and add useful bindkeys
Currently with the default .zshrc, Home and End keys do nothing, and Delete simply writes a '~'. It might be a nice addition to ship a .zshrc with:
bindkey "^[[F" end-of-line
bindkey "^[[H" beginning-of-line
bindkey "^[[3~" delete-char
Which would make End take the text cursor to the end of the line, Home to the beginning, and Delete actually delete a character.
In addition something could be done with PgUp and PgDown, as those both just write '~', or Insert, which does nothing. The first three are keys I personally use often and believe our userbase might find those useful, as Delete writing '~' doesn't seem very useful.
In general a zshrc configuration tool in the UI might be useful, but for now this seems like it would be easy to implement and useful without resulting in any problems.
#8 Updated by Aaron St. John almost 3 years ago
- Status changed from Ready for Testing to Passed Testing
Tested on FreeNAS-11.2-MASTER-201808140859
1. Pulled up a shell. Ran:
#echo $0 /usr/local/bin/bash #$SHELL #echo $0 /usr/local/bin/zsh
2. Typed some text and tested the "Home", "End", and "Delete" keys.
3. All worked as desired.