Hi,

Am Montag, 26. August 2002 20:04 schrieb Samuel Flory:

> /etc/profile contains system wide settings.

Better to put personal system wide stuff into /etc/profile.local. At 
the end of /etc/profile you just type "source /etc/profile.local" and 
this file will be sourced whenever you login :-)

This is my /etc/profile.local :-)

<cat>
echo -n '[ in profile.local...'
ORGANIZATION="MeFie Entertainment"
export ORGANIZATION
LESSCHARSET=latin1
export LESSCHARSET
EDITOR=joe
export EDITOR
PAGER=less
export PAGER

alias ssh_root='ssh [EMAIL PROTECTED]'
alias down='shutdown -h now'
alias gm='/usr/bin/fetchmail -vv -f /root/.fetchmailrc --invisible'
alias mn='/usr/sbin/fetchnews -vv && gm'
alias vnc='vncviewer'
alias t='/usr/sbin/traceroute'
alias unpack='tar -xvzf'
alias off='logout'
alias a=alias
alias c=clear
alias e='env | sort'
alias h='history 23'
alias j=jobs
alias f=finger
alias p='ps xaOp'
alias w='w -f'
alias x=exit
alias pp='ps faxOp'
alias ls='ls --color=tty'
alias l='ls -aCF'
alias ll='ls -alF'
alias lr='ls -Fartl'
alias dir='ls -lF'
alias le='less'
alias ..='cd ..'
alias cd..='cd ..'
alias ...='cd ../..'
alias +='pushd .'
alias -- -='popd'
alias rd='rm -rfv'
alias md='mkdir -p'
alias unix2dos='recode lat1:ibmpc'
alias dos2unix='recode ibmpc:lat1'
alias mac2unix='tr \r \n '
alias unzip='unzip -L'
alias scp='scp -prvC'
alias xtar='tar xzfv'
alias rd='rm -rf'
alias ln='ln -v'
alias mv='mv -v'
alias cp='cp -v'
alias rm='rm -v'
alias del='rm -iv'
alias chmod='chmod -v'
alias chown='chown -v'
alias gzip='gzip -v'
alias gunzip='gunzip -v'
alias which='type -all'
alias mlog='tail -f /var/log/mail'
alias slog='tail -f /var/log/messages'
alias wlog='tail -f /var/webmin/webmin.log'
alias weblog='tail -f /var/webmin/miniserv.log'
alias mailrights='chmod go-w / /etc /etc/mail /usr /var /var/spool 
/var/spool/mqueue && chown root / /etc/ /etc/mail /usr /var 
/var/spool /var/spool/mqueue'
alias domail='cd /etc/mail && mailrights && sh make-all-db && 
rcsendmail restart && mlog'
alias megalog='slog & mlog &'

# MM Aliases

# Diese Datei sourcen
alias ra='source /etc/profile.local'

# Diese Datei editieren, sourcen und sichern
alias ep='cp -f /etc/profile.local /root/backup/profile.local && joe 
/etc/profile.local && ra'

alias uhrzeitsetzen='echo -n "Vorher: " ; date ; echo "Uhrzeit holen 
und setzen:" ;  netdate tcp pcsun.chemie.uni-hamburg.de 
ptbtime1.ptb.de ptbtime2.ptb.de ; echo -n "Nachher:" ; date'

# bash functions

mdcd() {
        if [ $# = "1" ]; then
                mkdir $1; cd $1
        else
                echo "mdcd - Neues Directory erzeugen und reingehen"
                echo "       Usage: mdcd <newdirectoryname>"
        fi
}

unz() {
        if [ $# = "1" ]; then
                mkdir $1 && cd $1 && unzip ../$1.zip && ls -ltrF && cd 
..
        else
                echo "       Usage: unz <newzipdirectoryname>"
        fi
}


# bash prompt a la MM

PS1='<\t> \u@\H:\w \$ '
PS2=' > '

ignoreeof=1
export PS1 PS2 ignoreeof

echo ' Done. ]'
w
echo "mn - Mails und News holen! (root only for now!)";
echo "megalog - MailLog und Syslog in einem ;-)";
</cat>

cu
MM

-- 
http://www.mamemu.de/ - VMware und mehr :-)
Registered Linux User:274764 - http://counter.li.org/
Der Forte Agent in Deutsch: http://agent-de.mamemu.de/
AdminTool für Linux: http://admintool.lingua.at/



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to