babtools - bashrc

Ich lege mir seit Jahren in meiner bashrc aliase für komplexere Befehle an, und da ich denke, dass einige davon auch anderen Leuten nützlich sein könnten, habe ich mich entschieden meine bashrc zu veröffentlichen.

Vorher habe ich sie etwas aufgeräumt, damit sie auch lesbar ist, wenn man sie nicht selbst geschrieben hat :)

Wenn ihr Tipps und Ideen dafür habt, schreibt sie einfach in's Kommentarfeld, dafür ist das da :)

Die bashrc ist auch im Anhang zum herunterladen.

====== bashrc ======

# /etc/skel/.bashrc:

# This file is sourced by all *interactive* bash shells on startup. This
# file *should generate no output* or it will break the scp and rcp commands.

# This file is licensed under the LGPLv3 or higher.
# Copyright for the babtools section: © 2007 Arne Babenhauserheide

# colors for ls, etc.
eval `dircolors -b /etc/DIR_COLORS`

alias d="ls --color"
alias ls="ls --color=auto"
alias ll="ls --color -l"
alias grep="grep --color=auto"
alias opencd='eject cdrom0'
alias closecd='eject -t cdrom0'
alias startwmiix='WINDOWMANAGER=wmii startx -- vt8 :1 --nolisten tcp'
#alias emerge='emerge --nospinner --tree '

#### babtools - Miniskripte von Arne Babenhauserheide ####

alias babkernel='cp -v /usr/src/.config-babkernel /usr/src/linux/.config; LC_ALL=C nice genkernel --oldconfig --menuconfig --save-config --evms2 --bootloader=grub all && cp /usr/src/linux/.config /usr/src/.config-babkernel; '

alias babstartvnc='ps wwaux | grep auth | grep A: | sed s/root.*\\/var/\\/var/ | xargs x11vnc -auth'

alias babvncviewer='vncviewer -compresslevel 1'

alias babsync='nice layman -S; nice eix-sync ; emerge --regen'

alias babchroot32='xhost local:localhost ; linux32 chroot /mnt/gentoo32 /bin/bash; . /etc/profile ; env-update '

alias babquietportage='vim /usr/lib/portage/bin/emake'

alias babquickpkg_kde='eix -IS kde | grep "\[I\]" | sed "s/ \?\[[I0-9]\] \?//g" | xargs quickpkg'

alias babworldremerge='emerge -e system || until emerge --resume --skipfirst; do emerge -pq --resume >> /home/arne/emerge-remerge-fehler; nice rm -r /var/tmp/portage/* ; emerge --resume --skipfirst; done; emerge -e system || until emerge --resume --skipfirst; do emerge -pq --resume >> /home/arne/emerge-remerge-fehler; nice rm -r /var/tmp/portage/* ; emerge --resume --skipfirst; done; emerge -e world || until emerge --resume --skipfirst; do emerge -pq --resume >> /home/arne/emerge-remerge-fehler; nice rm -r /var/tmp/portage/* ; emerge --resume --skipfirst; done; emerge -e world || until emerge --resume --skipfirst; do emerge -pq --resume >> /home/arne/emerge-remerge-fehler; nice rm -r /var/tmp/portage/* ; emerge --resume --skipfirst; done;'

alias babworldupdate='babsync; emerge -utDN world || until emerge --resume --skipfirst; do date >> /home/arne/emerge-update-fehler; emerge -pq --resume >> /home/arne/emerge-update-fehler; emerge --resume --skipfirst; done '

alias babdate='ntpdate -u'

alias babmencode='mencoder -o Titel1.avi -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:vbitrate=1800:aspect=16/9'

alias babkde4merge='layman -s kde; cat /etc/portage/package.keywords/kde4 | sed s/^\#.*// | sed s/\\*\\*// | sed s/.*kdenetwork.*// | sed s/.*kde-base\\/kde*// | xargs emerge -tDN --oneshot || until emerge --resume --skipfirst; do date >> /home/arne/emerge-kde4-fehler ; emerge -pt --resume >> /home/arne/emerge-kde4-fehler; emerge --resume --skipfirst; done; rm /etc/env.d/44*; env-update;. /etc/profile '

alias babdep_rebuild='nice revdep-rebuild || until emerge --resume --skipfirst; do date >> /home/arne/emerge-kde4-fehler ; emerge -pq --resume >> /home/arne/emerge-update-fehler; nice rm -r /var/distfiles/* ; done'

alias babtar_wolshin='cd ~/Quell/eigenes/Uni/Theoretische\ Physik/TheoPhys2\ \(Elektrodynamik\)/Skript/Wolschin-Skript/; tar -czf theo2-skript-2007-src.tar.gz 2007*.tex stuff.tex skript.tex GPL.txt *.png *.svg'

alias babjectpod='eject /dev/disk/by-label/Klangfeuer'

alias babdep-rebuild-verbose='revdep-rebuild; until emerge --resume --skipfirst >> /home/arne/emerge-revdep-rebuild; do date >> /home/arne/emerge-revdep-rebuild-fehler ; cat /home/arne/emerge-revdep-rebuild >> /home/arne/emerge-revdep-rebuild-fehler; emerge --resume >> /home/arne/emerge-revdep-rebuild || cat /home/arne/emerge-revdep-rebuild >> /home/arne/emerge-revdep-rebuild-fehler; done;'

#### /babtools ####

# Esperanto - Spanisch - Deutsch - Englisch

# export LANG=eo:es:de:en

# emerge über screen
# alias scremerge="sudo screen emerge --nospinner"

# Change the window title of X terminals
case $TERM in
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\007"'
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\\"'

##uncomment the following to activate bash-completion:
[ -f /etc/profile.d/bash-completion ] && source /etc/profile.d/bash-completion

export PATH="/home/arne/bin:/usr/local/bin:$PATH"
# Firewire-Platte mounten:

# adds unicode support

#if [ $TERM = "linux" ]
# /usr/bin/unicode_start

# This line was appended by KDE
# Make sure our customised gtkrc file is loaded.
export GTK2_RC_FILES=$HOME/.gtkrc-2.0

# D-Bus für KDE 4

if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then
eval `dbus-launch --sh-syntax --exit-with-session`

====== /bashrc ======

public-bashrc4.73 KB

Use Node:

⚙ Babcom is trying to load the comments ⚙

This textbox will disappear when the comments have been loaded.

If the box below shows an error-page, you need to install Freenet with the Sone-Plugin or set the node-path to your freenet node and click the Reload Comments button (or return).

If you see something like Invalid key: There is no @ in that URI! (Sone/search.html), you need to setup Sone and the Web of Trust

If you had Javascript enabled, you would see comments for this page instead of the Sone page of the sites author.

Note: To make a comment which isn’t a reply visible to others here, include a link to this site somewhere in the text of your comment. It will then show up here. To ensure that I get notified of your comment, also include my Sone-ID.

Link to this site and my Sone ID: sone://6~ZDYdvAgMoUfG6M5Kwi7SQqyS-gTcyFeaNN1Pf3FvY

This spam-resistant comment-field is made with babcom.

Inhalt abgleichen
Willkommen im Weltenwald!

Beliebte Inhalte

Draketo neu: Beiträge news