- reset=`tput sgr0`
- bold='\E[1m'
- boldoff='\E[0m'
- white='\E[37m'
- black='\E[30;47m'
- red='\E[31m'
- green='\E[32m'
- yellow='\E[33m'
- blue='\E[34m'
- magenta='\E[35m'
- cyan='\E[36m'
- alias rm='junk'
- alias ls='ls --color=auto'
- alias yaupa='sudo yaourt -Syu --aur'
- alias yaup='sudo yaourt -Syu'
- alias yain='sudo yaourt -S'
- alias yaout='sudo yaourt -Rns'
- alias yas='sudo yaourt -Ss'
- alias ya='sudo yaourt'
- alias pacup='sudo pacman-color -Syu'
- alias pacin='sudo pacman-color -S'
- alias pacout='sudo pacman-color -R'
- alias pacs='sudo pacman-color -Ss'
- alias pac='sudo pacman-color'
- alias pacsync='sudo pacman-color -Sy'
- alias ddclient='sudo ddclient'
- alias wlan0-up='sudo iwconfig wlan0 essid Bolton_Home'
- alias backup-config='sudo cp /etc/rc.conf /media/disk/Files/config && sudo cp /etc/pacman.conf /media/disk/Files/config && sudo cp /home/syth/.bashrc /media/disk/Files/config/bashrc && sudo cp /etc/X11/xorg.conf /media/disk/Files/config && sudo cp /home/syth/.conkyrc /media/disk/Files/config/conkyrc && sudo cp /home/syth/.archnotify.py /media/disk/Files/config/archnotify.py && sudo cp -a ~/.config/openbox/* /media/disk/Files/config && rsync --delete -av /media/disk/Files/config/ root@twilightlair.net:/var/www/vhosts/twilightlair.net/httpdocs/files/config'
- alias backup-sol='cp "/home/syth/.wine/drive_c/windows/profiles/syth/Application Data/Macromedia/Flash Player/#SharedObjects/VF9TE2R8/localhost/n_v14b_userdata.sol" /media/disk/Files/'
- alias update-repo='rsync --delete -av /home/ABS/packages/ root@twilightlair.net:/var/www/vhosts/twilightlair.net/httpdocs/files/arch/twilightlair'
- alias update-site='rsync -av /home/httpd/website/ root@twilightlair.net:/var/www/vhosts/twilightlair.net/httpdocs'
- alias mount-twilightlair='sshfs root@twilightlair.net:/ /mnt/twilightlair'
- alias add-syth='useradd -G bin,daemon,disk,wheel,games,network,audio,video,optical,users,locate syth && passwd syth'
- alias initial-setup='add-syth && vi /etc/fstab && mkdir /media/disk && mount /dev/sdb1 && cp /media/disk/Files/rc.conf /etc/rc.conf && ndiswrapper -i /media/disk/Files/netmw245.inf && cp /media/disk/Files/pacman.conf /etc/pacman.conf && cp /media/disk/Files/sudoers /etc/sudoers && visudo && cp -a /media/disk/home/* /home/ && reboot'
- alias initial-install='pacman -Syuf && pacman -Sf conky-svn mpd slim archlinux-themes-slim abs gmpc sshfs scite apache screen ddclient yaourt xorg gnome-terminal nautilus-cd-burner nautilus lib-compat xf86-video-intel xchat-gnome vlc vlc-plugin visparted-svn unzip nautilus-locked-folder claws-mail claws-mail-extra-plugins spamassassin compiz-decorator-gtk skype recorder qbittorrent gtk-recordmydesktop gettext pacbuilder-svn pkgman pidgin phun pactools mpc perl-mime-lite pacman-color nvu ncftp namcap mumble hwd hamachi gstreamer0.10-ffmpeg gstreamer0.10-bad-plugins trickle gstreamer0.10-ugly-plugins glade gimp gdm flashplugin firefox-spookyet findbrokenpkgs filezilla ecere-sdk curlftpfs bash-completion freeorion glob2 teeworlds tremulous openbox stalonetray obconf obmenu feh xloadimage gnome-power-manager gnome-control-center gnome-desktop gnome-icon-theme gmrun lxappearance notification-daemon libnotify gnome-media gnome-mime-data gnome-mount gnome-screensaver gnome-session gnome-settings-daemon gnome-themes gnome-volume-manager libgail-gnome metacity aurvote audacity archassistant alsa-utils alsa-plugins alacarte xaralx gnochm dia giflib wine'
- start()
- {
- for arg in $*; do
- sudo /etc/rc.d/$arg start
- done
- }
- restart()
- {
- for arg in $*; do
- sudo /etc/rc.d/$arg restart
- done
- }
- stop()
- {
- for arg in $*; do
- sudo /etc/rc.d/$arg stop
- done
- }
- logs-pidgin(){
- echo
- echo -ne ""$bold"string: "$reset""; read string; echo
- echo -e "1) Jabber\n2) AIM\n3) MSN\n"
- echo -ne ""$bold"protocol: "$boldoff""; read protocol; echo
- case "$protocol" in
- 1) pro1='jabber'; pro2='twilight.lair@gmail.com' ;;
- 2) pro1='aim'; pro2='twilightlair0' ;;
- 3) pro1='msn'; pro2='twilight.lair@gmail.com' ;;
- esac
- case $protocol in
- 1)
- echo -e "1) Fed\n2) Greg\n3) Cameron\n4) Jared\n"
- echo -ne ""$bold"buddy: "$boldoff""; read buddy; echo
- case "$buddy" in
- 1) handle='mazzini.theomnipotentone@gmail.com' ;;
- 2) handle='gregtheturtle@gmail.com' ;;
- 3) handle='postophagus@gmail.com' ;;
- 4) handle='acopatemydonut@gmail.com' ;;
- esac ;;
- 2)
- echo -e "1) CokaznQuatre\n2) Jared\n"
- echo -ne ""$bold"buddy: "$boldoff""; read buddy; echo
- case "$buddy" in
- 1) handle='cokaznquatre' ;;
- 2) handle='bikesk8run' ;;
- esac ;;
- 3)
- echo -e "1) Dan\n2) Evlesoa\n"
- echo -ne ""$bold"buddy: "$boldoff""; read buddy; echo
- case "$buddy" in
- 1) handle='dan_gillan11@hotmail.co.uk' ;;
- 2) handle='evlesoa@hotmail.com' ;;
- esac ;;
- esac
- grep -l """$string""" ~/.purple/logs/$pro1/$pro2/$handle/* > ~/.search
- firefox ~/.search
- }
- function junk
- {
- TODAY=$(date +%d-%m-%y)
- if [ ! -e $HOME/.junk/$TODAY ]
- then
- mkdir -p $HOME/.junk/$TODAY
- fi
- for x in $@
- do
- mv $x $HOME/.junk/$TODAY
- done
- }
- note ()
- {
- #if file doesn't exist, create it
- [ -f $HOME/.notes ] || touch $HOME/.notes
- #no arguments, print file
- if [ $# = 0 ]
- then
- cat $HOME/.notes
- #clear file
- elif [ $1 = -c ]
- then
- > $HOME/.notes
- #add all arguments to file
- else
- echo "$@" >> $HOME/.notes
- fi
- }
- PS1='\[\e[1;35m\]\u\[\e[m\] \[\e[1;34m\]\W\[\e[m\] \[\e[1;31m\]> \[\e[0m\]'
- PS2='>'
- echo -e " Welcome to ${bold}Arch Linux${boldoff}"
- sleep 1
- clear
- #source ~/.custom-prompt.sh
- if [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
