Skip to content
Snippets Groups Projects
Commit d742e1b5 authored by Vittorio G (VittGam)'s avatar Vittorio G (VittGam) Committed by Jo-Philipp Wich
Browse files

base-files: Enhancements to /etc/profile


- Update the terminal window title with the current directory and hostname, if using an xterm-compatible terminal emulator.
- Add ll, an useful alias to ls.

Signed-off-by: default avatarVittorio Gambaletta <openwrt@vittgam.net>
parent 424a94d8
No related branches found
No related tags found
No related merge requests found
......@@ -11,9 +11,13 @@ export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
export HOME=${HOME:-/root}
export PS1='\u@\h:\w\$ '
[ "$TERM" = "xterm" ] && export PS1='\[\e]0;\u@\h: \w\a\]'$PS1
[ -x /bin/more ] || alias more=less
[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
alias ll='ls -alF --color=auto'
[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
[ -x /usr/bin/arp ] || arp() { cat /proc/net/arp; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment