Files
meta-mortsgna/appends/oe-core/base-files/profile
Andreas Müller 81f899aee6 Another default language rework
* re-add fallback in profile: currently no LANG is set by systemd
* Fix typos in locale.conf

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
2019-04-19 13:30:06 +02:00

1.3 KiB

/etc/profile: system-wide .profile file for the Bourne shell (sh(1))

and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).

PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"

TERM="xterm-256color"

Set the prompt for bash

PS1='\u@\h:\W$ '

loop profile.d scriptlets

if [ -d /etc/profile.d ]; then for i in /etc/profile.d/*.sh; do if [ -f $i -a -r $i ]; then . $i fi done unset i fi

set locale fallback - all our images contain en_US

if [ -z "$LANG" ]; then LANG="en_US.utf8" export LANG fi

`ls' enhancements:

export LS_OPTIONS='--color=auto' eval dircolors alias ls='ls $LS_OPTIONS' alias ll='ls $LS_OPTIONS -l'

colorize all grep variants

alias grep='grep --color' alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias xzegrep='xzegrep --color=auto' alias xzfgrep='xzfgrep --color=auto' alias xzgrep='xzgrep --color=auto' alias zegrep='zegrep --color=auto' alias zfgrep='zfgrep --color=auto' alias zgrep='zgrep --color=auto'

Turn on parallel history

shopt -s histappend history -a

HOSTNAME=hostname 2>/dev/null HISTSIZE=1000 if [ "$HISTCONTROL" = "ignorespace" ] ; then export HISTCONTROL=ignoreboth else export HISTCONTROL=ignoredups fi

Turn on checkwinsize

shopt -s checkwinsize

export PATH TERM PS1 PROMPT_COMMAND HOSTNAME HISTSIZE

umask 022