496
edits
Line 123: | Line 123: | ||
Here | Here's an example of a hey syntax using some of these parameters. | ||
hey -t " | undone@murphy (~) -> hey -t "Hello" -b " :: [][]" -p "%u >> " joe5ie | ||
joe5ie >> Hey joe5ie, I've always wondered, what's with that username? | |||
joe5ie >> I mean, you've gotta admit it's kinda weird... | |||
joe5ie >> | |||
hey: | hey: joe5ie - groovy | ||
and this creates: | |||
[::::::::::::::::::::::::::: Hello ::::::::::::::::::::::::::::] | |||
Hey joe5ie, I've always wondered, what's with that username? | |||
I mean, you've gotta admit it's kinda weird... | |||
[::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::] | |||
You | Try experimenting some more with a few of these commands. If you have any problems, just ask a member of Helpdesk. You can also get more info on these commands by typing "man hey" into your terminal. | ||
=== Saving your settings === | |||
If you've come up with a nice hey border, or some settings that you'd like to use every time you send a hey, then you can set these up as defaults. | |||
By changing some of your shell variables, you can make it so that all of your settings, like the border and title, will be in place every time you just type "hey username". To change those variables you'll have to edit your .rc file. The default shell on Redbrick is zsh, so you'll most likely be editing a file called ".zshrc". It's located in your home directory, so open the file by typing: | |||
nano ~/.zshrc | |||
Now to | Now you can add some of the following lines to the file, changing them to suit your needs. | ||
export HEY_TITLE="Hello" | |||
export HEY_BORDERS=" :: [][]" | |||
export HEY_WRAP=90 | |||
export HEY_SUCCESS="groovy" | |||
export HEY_PROMPT="%u >> " | |||
When you're done editing the file, press ctrl and x to save and then press y to accept the changes you've made. You can activate the changes by typing: | |||
source ~/.zshrc | |||
If you have any problems with this, or make a mistake when editing your .zshrc file, just talk to Helpdesk and we'll help you out. You can also create shell aliases, which allow you to run a long command through a much shorter one. Try adding a line like this to your .zshrc file in the same way as above. | |||
alias joe='hey -t "Hello" -b " :: [][]" -p " %u >> " undone' | |||
So now when you save and source the .zshrc file again, you'll start a hey with those settings every time you type "joe" at the command prompt. Doing this will allow you to have specific hey settings for any individual user you want. | |||
Now that you've learned all this, it's time to get heying! Of course, if you have anything you else you'd like to know about heying, just ask a member of helpdesk. |
edits