source: trunk/package/base-files/files/etc/profile @ 13914

Last change on this file since 13914 was 13914, checked in by nbd, 7 years ago

fix $HOME in /etc/profile (#4424)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 473 bytes
Line 
1#!/bin/sh
2[ -f /etc/banner ] && cat /etc/banner
3
4export PATH=/bin:/sbin:/usr/bin:/usr/sbin
5export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
6export HOME=${HOME:-/root}
7export PS1='\u@\h:\w\$ '
8
9[ -x /bin/more ] || alias more=less
10[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
11
12[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
13
14[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
15[ -z /bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
Note: See TracBrowser for help on using the repository browser.