496
edits
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
Changing The Command Prompt | Changing The Command Prompt | ||
| Line 51: | Line 48: | ||
[cambo @ prodigy]> [12:00:00 on 02-05-15] | [cambo @ prodigy]> [12:00:00 on 02-05-15] | ||
Adding colours to the command prompt | == Adding colours to the command prompt == | ||
Its still looking kinda plain isn't it..... Maybe we could add some colours to it to see what we can do. zsh has another special set of escape characters specifically for printing colours at the prompt and we can also add these sequences to our PS1/RPS1 variables. | Its still looking kinda plain isn't it..... Maybe we could add some colours to it to see what we can do. zsh has another special set of escape characters specifically for printing colours at the prompt and we can also add these sequences to our PS1/RPS1 variables. | ||
| Line 111: | Line 108: | ||
} | } | ||
Auto | == Auto completion == | ||
You may have noticed that zsh supports command auto-completion (as do most Bourne-compatible shells). For example if you type "cd pu" and press <-TAB-> it will automatically complete the command for you to "cd public_html". If you also have a directory called "pubs" then auto-complete will give you a list of all possible completions to what you have already typed. You can specify your own auto-completions to the command prompt in your .zshrc also. Maybe you're just lazy and don't want to have to type your friend's username when you're spying on him/her. In this case you could set up and auto completion list from your .friends file. e.g. | You may have noticed that zsh supports command auto-completion (as do most Bourne-compatible shells). For example if you type "cd pu" and press <-TAB-> it will automatically complete the command for you to "cd public_html". If you also have a directory called "pubs" then auto-complete will give you a list of all possible completions to what you have already typed. You can specify your own auto-completions to the command prompt in your .zshrc also. Maybe you're just lazy and don't want to have to type your friend's username when you're spying on him/her. In this case you could set up and auto completion list from your .friends file. e.g. | ||
edits