Thema: Eure Bashrc

  1. #1
    Avatar von Ta1lor
    Registriert seit
    15.11.2011
    Beiträge
    767
    Thanked 832 Times in 435 Posts

    Standard 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
    ###############################################################################

  2. The Following User Says Thank You to Ta1lor For This Useful Post:

    .Empty (02.11.2018)

  3. #2
    Avatar von patlux
    Registriert seit
    26.10.2011
    Beiträge
    1.195
    Thanked 1.596 Times in 725 Posts
    Blog Entries
    2

    Ausrufezeichen AW: 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

  1. Eure Desktops
    Von RavoxX im Forum OffTopic
    Antworten: 340
    Letzter Beitrag: 22.04.2017, 13:54
  2. GTA V - Eure Meinung!?
    Von Runix im Forum Gaming Allgemein
    Antworten: 68
    Letzter Beitrag: 31.10.2013, 21:38
  3. Eure Aktivitäten im WWW
    Von patlux im Forum OffTopic
    Antworten: 17
    Letzter Beitrag: 12.11.2012, 11:18
  4. Eure Steamaccounts
    Von dGL im Forum OffTopic
    Antworten: 1
    Letzter Beitrag: 05.06.2012, 17:19
  5. [MW3] Eure Klassen
    Von BMG im Forum Call of Duty
    Antworten: 4
    Letzter Beitrag: 29.05.2012, 16:56
Diese Seite nutzt Cookies, um das Nutzererlebnis zu verbessern. Klicken Sie hier, um das Cookie-Tracking zu deaktivieren.