Date: Thu, 20 Apr 2000 12:06:25 -0700 (PDT) From: Doug Barton <Doug@gorean.org> To: James Howard <howardjp@wam.umd.edu> Cc: freebsd-questions@freebsd.org Subject: Re: /bin/sh question Message-ID: <Pine.BSF.4.21.0004201200400.83239-300000@dt051n0b.san.rr.com> In-Reply-To: <200004201611.MAA01664@rac4.wam.umd.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-1128001150-956257585=:83239 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 20 Apr 2000, James Howard wrote: > I have been a bash addict for many years. This is one of two bad habits I > still have not broken from my days as a Linux admin (please don't tell > anyone!). The other is 'less.' > > However, I have recently noticed that FreeBSD's sh does nearly everything > I need except for one thing. My bash prompt is set to "\u@\h:\w\$ " and > typically my prompt is then shown as "howardjp@byzantine:~$ ". Is there > anyway to get something similar from sh? Attached are the .profile and .shrc files I submitted to -hackers (or -current, I don't remember) as candidates for inclusion in the base. They were created out of a combination of what's already there, and some things of my own. After much discussion nothing happened with them, but I still think they are pretty good. :) I use them myself now. BTW, there is nothing wrong with using bash, it's been my primary shell for 7 years. I use /bin/sh as my login shell for both root and my unprivileged user, and I have the following as the very first line in my .profile: [ -x /usr/local/bin/bash ] && exec /usr/local/bin/bash --rcfile $HOME/.bash_profile Works like a charm. Doug -- Excess on occasion is exhilarating. It prevents moderation from acquiring the deadening effect of a habit. -- W. Somerset Maugham --0-1128001150-956257585=:83239 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=".profile" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0004201206250.83239@dt051n0b.san.rr.com> Content-Description: /bin/sh profile Content-Disposition: attachment; filename=".profile" IyAkRnJlZUJTRDogc3JjL2V0Yy9yb290L2RvdC5wcm9maWxlLHYgMS4yMCAx OTk5LzA4LzI3IDIzOjI0OjA5IHBldGVyIEV4cCAkDQojDQojIC5wcm9maWxl IC0gQm91cm5lIFNoZWxsIHN0YXJ0dXAgc2NyaXB0IGZvciBsb2dpbiBzaGVs bHMNCiMNCiMgc2VlIGFsc28gc2goMSksIGVudmlyb24oNykuDQojDQoNCiMg UmVtb3ZlIC91c3IvZ2FtZXMgYW5kIC91c3IvWDExUjYvYmluIGlmIHlvdSB3 YW50DQpQQVRIPS91c3IvYmluOi9iaW46L3Vzci9zYmluOi9zYmluOi91c3Iv bG9jYWwvYmluOi91c3IvbG9jYWwvc2JpbjovdXNyL1gxMVI2L2JpbjovdXNy L2dhbWVzOiRIT01FL2Jpbg0KZXhwb3J0IFBBVEgNCg0KIyBTZXR0aW5nIFRF Uk0gaXMgbm9ybWFsbHkgZG9uZSB0aHJvdWdoIC9ldGMvdHR5cy4gIE9ubHkg b3ZlcnJpZGUNCiMgaWYgeW91J3JlIHN1cmUgdGhhdCB5b3UnbGwgbmV2ZXIg bG9nIGluIHZpYSB0ZWxuZXQsIHh0ZXJtIG9yIGENCiMgc2VyaWFsIGxpbmUu DQojIFVzZSBjb25zMjVsMSBmb3IgaXNvLSogZm9udHMNClRFUk09JHtURVJN Oi1jb25zMjV9DQpleHBvcnQgVEVSTQ0KDQpFRElUT1I9dmkNCmV4cG9ydCBF RElUT1INClBBR0VSPW1vcmUNCmV4cG9ydCBQQUdFUg0KQkxPQ0tTSVpFPUsN CmV4cG9ydCBCTE9DS1NJWkUNCg0KIyBTZXQgRU5WIHRvIGEgZmlsZSBpbnZv a2VkIGVhY2ggdGltZSBzaCBpcyBzdGFydGVkIGZvciBpbnRlcmFjdGl2ZSB1 c2UuDQpFTlY9JEhPTUUvLnNocmM7IGV4cG9ydCBFTlYNCg0K --0-1128001150-956257585=:83239 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=".shrc" Content-Transfer-Encoding: BASE64 Content-ID: <Pine.BSF.4.21.0004201206251.83239@dt051n0b.san.rr.com> Content-Description: /bin/sh .shrc file Content-Disposition: attachment; filename=".shrc" IyAkR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EgY3NoLWxpa2Ug dW5saW1pdCBjb21tYW5kLiAgVW5wcml2aWxpZ2VkIHVzZXJzIG1heQ0KIyBu b3QgYmUgYWJsZSB0byBjaGFuZ2Ugc29tZSBvZiB0aGVzZSBsaW1pdHMuDQp1 bmxpbWl0ICggKSB7DQoJZWNobyAnICAgU2V0dGluZyBzb2NrIGJ1ZiBzaXpl JzsJdWxpbWl0IC1iIHVubGltaXRlZA0KCWVjaG8gJyAgIFNldHRpbmcgY29y ZSBmaWxlIHNpemUnOwl1bGltaXQgLWMgdW5saW1pdGVkDQoJZWNobyAnICAg U2V0dGluZyBkYXRhIHNpemUnOwkJdWxpbWl0IC1kIHVubGltaXRlZA0KCWVj aG8gJyAgIFNldHRpbmcgZmlsZSBzaXplJzsJCXVsaW1pdCAtZiB1bmxpbWl0 ZWQNCgllY2hvICcgICBTZXR0aW5nIGxvY2tlZCBtZW0gc2l6ZSc7CXVsaW1p dCAtbCB1bmxpbWl0ZWQNCgllY2hvICcgICBTZXR0aW5nIHJlcyBzaXplJzsJ CXVsaW1pdCAtbSB1bmxpbWl0ZWQNCgllY2hvICcgICBTZXR0aW5nIGZkcyc7 CQkJdWxpbWl0IC1uIHVubGltaXRlZA0KCWVjaG8gJyAgIFNldHRpbmcgc3Rh Y2sgc2l6ZSc7CQl1bGltaXQgLXMgdW5saW1pdGVkDQoJZWNobyAnICAgU2V0 dGluZyBjcHUgdGltZSc7CQl1bGltaXQgLXQgdW5saW1pdGVkDQoJZWNobyAn ICAgU2V0dGluZyBtYXggcHJvY2Vzc2VzJzsJdWxpbWl0IC11IHVubGltaXRl ZA0KfQ0KDQojIFVuY29tbWVudCB0byBkaXNwbGF5IGEgcmFuZG9tIGNvb2tp ZSBlYWNoIGxvZ2luOg0KI1sgLXggL3Vzci9nYW1lcy9mb3J0dW5lIF0gJiYg L3Vzci9nYW1lcy9mb3J0dW5lDQoNCg== --0-1128001150-956257585=:83239-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0004201200400.83239-300000>