source: pkg/viola/main/distro-defaults/trunk/profile @ 3340

Revision 1787, 1.8 KB checked in by alanbach-guest, 7 years ago (diff)

distro-defaults 1.0.0 updates

Line 
1# /etc/profile
2umask 022
3PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin:/usr/games"
4[ -e /usr/NX/bin ] && PATH="$PATH:/usr/NX/bin"
5[ "$UID" = "0" ] || PATH="$PATH:."
6export PATH
7# Set LOCALE
8if [ -f /etc/sysconfig/i18n ]; then
9    . /etc/sysconfig/i18n
10    [ -n "$LANG" ] || LANG="de_DE@euro"
11    export LANG
12    [ -n "$LC_CTYPE" ] && export LC_CTYPE || unset LC_CTYPE
13    [ -n "$LC_COLLATE" ] && export LC_COLLATE || unset LC_COLLATE
14    [ -n "$LC_MESSAGES" ] && export LC_MESSAGES || unset LC_MESSAGES
15    [ -n "$LC_NUMERIC" ] && export LC_NUMERIC || unset LC_NUMERIC
16    [ -n "$LC_MONETARY" ] && export LC_MONETARY || unset LC_MONETARY
17    [ -n "$LC_TIME" ] && export LC_TIME || unset LC_TIME
18    [ -n "$LC_ALL" ] && export LC_ALL || unset LC_ALL
19    [ -n "$LANGUAGE" ] && export LANGUAGE || unset LANGUAGE
20    [ -n "$LINGUAS" ] && export LINGUAS || unset LINGUAS
21    [ -n "$_XKB_CHARSET" ] && export _XKB_CHARSET || unset _XKB_CHARSET
22
23    if [ -n "$SYSFONTACM" ]; then
24        case $SYSFONTACM in
25            iso01*|iso02*|iso15*|koi*|latin2-ucw*)
26                if [ "$TERM" = "linux" ]; then
27                    if ls -l /proc/$$/fd/0 2>/dev/null | grep -- '-> /dev/tty[0-9]*$' >/dev/null 2>&1; then
28                        echo -n -e '\033(K' > /proc/$$/fd/0
29                    fi
30                fi
31                ;;
32        esac
33    fi
34    unset SYSFONTACM
35fi
36# END LOCALE
37# enable bash completion in interactive shells
38[ "$PS1" -a -f /etc/bash_completion ] && . /etc/bash_completion
39TTY=$(tty)
40TTY=${TTY##*/}
41[ -n "$TTY" ] && PS1="\[[1;36m\]\u@$TTY[\W]\\$\[[0;39m\] " || PS1="\[[1;36m\][\W]\u\[[0;39m\] "
42alias ..="cd .."
43alias which="type -path"
44alias where="type -all"
45alias ll="ls -l --color=auto"
46alias l="ls -a --color=auto"
47alias rm="rm -f"
48alias mv="mv -f"
49alias cp="cp -f"
50alias la="ls -la --color=auto"
51alias ls="ls --color=auto"
52# This is very PARSIX-specific
53alias su="sudo su"
54alias vi="vim"
Note: See TracBrowser for help on using the repository browser.