summaryrefslogtreecommitdiffhomepage
path: root/once/etc/init.sh
blob: 1702c8f37158258e2f8a390cdb9ec8bf5636b821 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

cd /

export HOME=/home/$(/bin/whoami)
export PATH=$HOME/.local/bin:/local/sbin:/local/bin:/sbin:/bin

if [ "$TERM" = xterm ]; then
	export PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
else
	export PS1='\n\w \$ '
fi

if [ -x /bin/dircolors ]; then
	alias ls='ls --color=auto'
	alias grep='grep --color=auto'
	alias fgrep='fgrep --color=auto'
	alias egrep='egrep --color=auto'
fi

alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'