bashrc 1.28 KB
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output.  So make sure this doesn't display
# anything or bad things will happen !


# Test for an interactive shell.  There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
	# Shell is non-interactive.  Be done now!
	return
fi

# Variables
QEMU_AUDIO_DRV=alsa

export QEMU_AUDIO_DRV

# Put your fun stuff here.
alias muedv100="rdesktop -f muedv100"
alias "vm-linux"="/opt/kvm/bin/qemu-system-x86_64 -hda kvm/hdd2.img -boot c -m 512"

# run or connect to running ssh-agent
SSH_AUTH_SOCK=~/.ssh/socks/agent.auth
SSH_AGENT_PID=$(echo $(ps hu -C 'ssh-agent' | grep $USER) | cut -d\  -f2)
if [ -z "$SSH_AGENT_PID" ]
then
	eval $(ssh-agent -a $SSH_AUTH_SOCK)
	
	# !!! DONT DO THIS IF YOUR SYSTEM IS NOT 100% SECURE !!!
	# very insecure things follow here...to avoid the need to enter
	# the password for you identity you can use a script that simply
	# writes you PW to stdout... !!! VERY INSECURE, YE BE WARNED !!!
	export SSH_ASKPASS=~/.ssh/.ssh-pass
	ssh-add ~/.ssh/id_rsa </dev/null 2>/dev/null
	unset SSH_ASKPASS
fi