diff options
author | ahriman <ahriman@falte.red> | 2019-09-02 17:42:06 -0400 |
---|---|---|
committer | ahriman <ahriman@falte.red> | 2019-09-02 17:42:06 -0400 |
commit | 0381bce35845cb387fcd7ce124da60b9c45c611a (patch) | |
tree | a28be6c57f92aa6b183f5ccc453cddfecea3c833 /pages/unixtips.md | |
download | wiki-0381bce35845cb387fcd7ce124da60b9c45c611a.tar.gz |
tildewiki
Diffstat (limited to 'pages/unixtips.md')
-rw-r--r-- | pages/unixtips.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/pages/unixtips.md b/pages/unixtips.md new file mode 100644 index 0000000..675d644 --- /dev/null +++ b/pages/unixtips.md @@ -0,0 +1,36 @@ +<!-- +title: UNIX ProTips +description: Handy tips for budding power users +author: xvetrd +--> + +# UNIX ProTips + +I realized today I wasn't getting mail notifications, and I hadn't set +them up on this shell. So here are some things I do on my local machine +that work here: + +To get the shell to tell you when you have new mail, after command +executions, add this to your `.profile` or your `.kshrc` files +(or other shell RC file) in your home directory. + +``` +export MAILCHECK=0 +``` + +And, if you want, you can have a persistent notification when +you have un-incorporated mail, or more specifically, when your +`/var/mail/<username>` isn't empty. + +``` +PS1="\$([-s /var/mail/`whoami` ] && echo '* ')$PS1" +``` + +This works in `/bin/ksh`, I can't speak for other shells. + +If anybody else has some quick tips they would like to share, I encorage +them to edit this page. + +Happy Unixing! + +[back](/) |