diff options
author | eadler <eadler@FreeBSD.org> | 2012-04-11 14:13:22 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-04-11 14:13:22 +0000 |
commit | 35af82042bc6e44ce65c768dd44e79d1661abd94 (patch) | |
tree | 37c845bbf0e86158cdf0979d7a2adff0f6c3b3ed /etc | |
parent | a2b5cc87fc0da7018522c60c0c96609b42356c55 (diff) | |
download | FreeBSD-src-35af82042bc6e44ce65c768dd44e79d1661abd94.zip FreeBSD-src-35af82042bc6e44ce65c768dd44e79d1661abd94.tar.gz |
- remove the length shortening on the path
- make the default prompt a bit more like scp
- make the user show as root even when using 'su' instead of 'su -'
- the key bindings didn't hurt anything but likely hide a bug
- merge history instead of overwriting it
Submitted by: gavin, joel
Approved by: cperciva
Diffstat (limited to 'etc')
-rw-r--r-- | etc/root/dot.cshrc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/etc/root/dot.cshrc b/etc/root/dot.cshrc index 515f1b7..b665825 100644 --- a/etc/root/dot.cshrc +++ b/etc/root/dot.cshrc @@ -23,12 +23,15 @@ setenv BLOCKSIZE K if ($?prompt) then # An interactive shell -- set some stuff up - set prompt = "%n@%m:%c04%# " + if ($uid == 0) then + set user = root + endif + set prompt = "%n@%m:%/ %# " set promptchars = "%#" set filec set history = 1000 - set savehist = 1000 + set savehist = (1000 merge) set autolist = ambiguous # Use history to aid expansion set autoexpand @@ -38,10 +41,6 @@ if ($?prompt) then bindkey "^W" backward-delete-word bindkey -k up history-search-backward bindkey -k down history-search-forward - - bindkey "\e[1~" beginning-of-line #make Home key work; - bindkey "\e[3~" delete-char #make Delete key work; - bindkey "\e[4~" end-of-line #make End key work; endif endif |