.Empty (02.11.2018)
Thema: Eure Bashrc
-
11.04.2012, 17:44 #1
Eure Bashrc
Moin,
zeigt sie her, eure supergeiler Bashrc, ob global oder userspezifisch ist ziemlich egal.
Meine:
Code:############################################################################### # Exit Bashrc if non interactive Shell ############################################################################### [ -z "$PS1" ] && return ############################################################################### # Checking window size after each command and update lines and columns ############################################################################### shopt -s checkwinsize ############################################################################### # Colored Prompt and ssh-agent ############################################################################### if [ $USER == "root" ] then PS1='$? \[\e[01;31m\]\u\[\e[1;34m\]@\[\e[1;31m\]\h\[\e[1;34m\] \w # \[\e[0m\]' AGENTINFO=/root/agentinfo if [ `ps -ef | grep -c 'ssh-agent$'` -eq 0 ] then ssh-agent | sed -r 's/^(.*);.*;$/export \1/' | grep -v 'echo' > $AGENTINFO . $AGENTINFO ssh-add else . $AGENTINFO fi else PS1='$? \[\e[01;32m\]\u\[\e[1;34m\]@\[\e[1;32m\]\h\[\e[1;34m\] \w $ \[\e[0m\]' fi ############################################################################### # Aliases ############################################################################### alias lll="ls -lah --color=auto $OPTION" alias ll="ls -lah --color=auto $OPTION" alias l="ls -lah --color=auto $OPTION" alias grep="grep -i --color=auto $OPTION" alias dmesg="/root/bin/dmesg.pl" alias warnow="ssh suppertollerserver" alias sv="ssh suppertollerserver" alias pr1="ssh suppertollerserver" alias christel="ssh suppertollerserver" alias pia="ssh suppertollerserver" ############################################################################### # History with timestamp ############################################################################### export HISTTIMEFORMAT='[%Y%m%d] [%H:%M:%S]: ' export HISTCONTROL=ignoredups ############################################################################### # Vim as default Editor (for visudo for example) ############################################################################### export EDITOR=vim ############################################################################### # other stuff here ###############################################################################
-
The Following User Says Thank You to Ta1lor For This Useful Post:
-
18.05.2012, 11:35 #2
- Registriert seit
- 26.10.2011
- Beiträge
- 1.196
- Blog Entries
- 2
Thanked 1.596 Times in 725 PostsAW: Eure Bashrc
Nix besonderes ^.^
Code:# # ~/.bashrc # # If not running interactively, don't do anything [[ $- != *i* ]] && return alias ls='ls --color=auto' PS1='\W > ' # LibreOffice Standard-Theme export OOO_FORCE_DESKTOP=gnome
Ähnliche Themen
-
Eure Desktops
Von RavoxX im Forum OffTopicAntworten: 340Letzter Beitrag: 22.04.2017, 13:54 -
GTA V - Eure Meinung!?
Von Runix im Forum Gaming AllgemeinAntworten: 68Letzter Beitrag: 31.10.2013, 21:38 -
Eure Aktivitäten im WWW
Von patlux im Forum OffTopicAntworten: 17Letzter Beitrag: 12.11.2012, 11:18 -
Eure Steamaccounts
Von dGL im Forum OffTopicAntworten: 1Letzter Beitrag: 05.06.2012, 17:19 -
[MW3] Eure Klassen
Von BMG im Forum Call of DutyAntworten: 4Letzter Beitrag: 29.05.2012, 16:56
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.