diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2015-05-30 00:36:56 +0000 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2018-04-29 20:51:53 -0700 |
commit | 87d344ae58d22f54c6e8ecd8b0ef771ceeacdecb (patch) | |
tree | e03c82a604e03d73d29c86b7094add66381e6fba | |
parent | f184a972714600bccc4328ccd552a637bb730cef (diff) | |
download | dotfiles-87d344ae58d22f54c6e8ecd8b0ef771ceeacdecb.tar.gz |
dump SDF .profile and incorporate useful parts into .shenv
-rwxr-xr-x | .profile | 85 | ||||
-rwxr-xr-x | .shenv | 4 |
2 files changed, 12 insertions, 77 deletions
@@ -1,80 +1,11 @@ -#ident "@(#)/etc/stdprofile.sl 1.1 3.0 11/18/85 18386 " -# This is the default standard profile provided to a user. -# They are expected to edit it to meet their own needs. +#umask 022 -# Hello there and welcome to your .profile! The .profile is a -# way for you to initialize and customize your UNIX environment. -# -# I'd like to help you with a few notes about each part. -# -# This sets the environment variable "MAIL" for the location of your -# email file. Typically email is spooled in /usr/mail with the user's -# login (enviroment variable LOGNAME) for the file's name. -MAIL=/mail/${LOGNAME:?} +# --- $PATH -# Which editor? Well, here is the standard and then the VIsual editor -# based off of ex (EXtended ed). But since you might not know these, -# we will give you "pico". -#EDITOR=/bin/ed -#VISUAL=/usr/bin/vi -EDITOR=/usr/pkg/bin/zile +if [ -d ~/local/bin ] ; then + PATH=~/local/bin:"${PATH}" +fi -# Neat hacks for the David Korn's shell. -# standard prompt is the dollar sign. The shell comment character -# if you can't tell is the pound (#) sign. Uncomment out the follow -# and delete the line after it (or comment it out) if you would like -# the standard UNIX Korn shell prompt. -# -# Normal UNIX prompt -PS1="$ " -# -# This one gives you the return code for the last command executed -# and the present working directory -#PS1=['$?:${PWD#${PWD%/*/*/*}/}> ' - -# here is an example of a KSH function. This one puts the current -# directory and hostname in your prompt -#host=`uname -n` - -#chdir () -#{ -# \cd ${*:-$HOME} && PS1="$host:$(pwd)> " -#} - -#alias cd=chdir -#cd - -# This tells the system what terminal you are using or emulating. We do -# support a number of terminals and can infact support more. For more -# ideas, you can look in /usr/lib/terminfo. Default TTY is typically a -# DEC vt100. -TERM=vt100 - -# stty (Set TTY) sets up your TTY. Note, if you have problems with -# your backspace key, try changing the "erase '^h'" to "erase '^?'". -# If that still does not help, type stty erase at the shell prompt -#and then hit your backspace key. - -stty erase '^h' echoe - -# The following can be used for setting up the number of lines and -# columns you are using. Most typical PC-COMM programs use 24 lines -# by 79 or 80 columns. These settings (commented out) are typically -# used for TTYs .. experiment in sizing your own. -#LINES=25 -#COLUMNS=80 -# -# stty rows 25 cols 80 - -# Now lets go ahead and make those enviroment variables active! export 'em! -export MAIL PS1 TERM EDITOR VISUAL - -echo -echo "Welcome to the SDF Public Access UNIX system. (est. 1987)\n" -echo "For quick help, type 'help'" -echo "For detailed questions and answers, type 'faq'" -echo "For user discussion boards and software requests, type 'bboard'" -echo "For interactive discussions, type 'com'" -echo "To setup your homepage, type 'mkhomepg'" -echo "to create your URL http://$LOGNAME.freeshell.org, type 'mkhomepg -a'\n" -echo "Explore and Enjoy!\n" +if [ -d ~/bin ] ; then + PATH=~/bin:"${PATH}" +fi @@ -6,6 +6,10 @@ # We have calls to `which` which we expect to fail set +e +# ---- SDF backspace fix from SDF .profile + +stty erase '^h' echoe + # ---- choose editor depending on what's available if [ "$DESKTOP_SESSION" = "i3" ]; then |