Showing
1 changed file
with
40 additions
and
0 deletions
bashrc
0 → 100644
| 1 | +# /etc/skel/.bashrc | |
| 2 | +# | |
| 3 | +# This file is sourced by all *interactive* bash shells on startup, | |
| 4 | +# including some apparently interactive shells such as scp and rcp | |
| 5 | +# that can't tolerate any output. So make sure this doesn't display | |
| 6 | +# anything or bad things will happen ! | |
| 7 | + | |
| 8 | + | |
| 9 | +# Test for an interactive shell. There is no need to set anything | |
| 10 | +# past this point for scp and rcp, and it's important to refrain from | |
| 11 | +# outputting anything in those cases. | |
| 12 | +if [[ $- != *i* ]] ; then | |
| 13 | + # Shell is non-interactive. Be done now! | |
| 14 | + return | |
| 15 | +fi | |
| 16 | + | |
| 17 | +# Variables | |
| 18 | +QEMU_AUDIO_DRV=alsa | |
| 19 | + | |
| 20 | +export QEMU_AUDIO_DRV | |
| 21 | + | |
| 22 | +# Put your fun stuff here. | |
| 23 | +alias muedv100="rdesktop -f muedv100" | |
| 24 | +alias "vm-linux"="/opt/kvm/bin/qemu-system-x86_64 -hda kvm/hdd2.img -boot c -m 512" | |
| 25 | + | |
| 26 | +# run or connect to running ssh-agent | |
| 27 | +SSH_AUTH_SOCK=~/.ssh/socks/agent.auth | |
| 28 | +SSH_AGENT_PID=$(echo $(ps hu -C 'ssh-agent' | grep $USER) | cut -d\ -f2) | |
| 29 | +if [ -z "$SSH_AGENT_PID" ] | |
| 30 | +then | |
| 31 | + eval $(ssh-agent -a $SSH_AUTH_SOCK) | |
| 32 | + | |
| 33 | + # !!! DONT DO THIS IF YOUR SYSTEM IS NOT 100% SECURE !!! | |
| 34 | + # very insecure things follow here...to avoid the need to enter | |
| 35 | + # the password for you identity you can use a script that simply | |
| 36 | + # writes you PW to stdout... !!! VERY INSECURE, YE BE WARNED !!! | |
| 37 | + export SSH_ASKPASS=~/.ssh/.ssh-pass | |
| 38 | + ssh-add ~/.ssh/id_rsa </dev/null 2>/dev/null | |
| 39 | + unset SSH_ASK_PASS | |
| 40 | +fi | ... | ... |
Please
register
or
login
to post a comment