Commits

Anonymous committed 9678a79

remove mount alias and create mount function, add ixia specific environment variables

  • Participants
  • Parent commits 9182378

Comments (0)

Files changed (1)

 
 	alias df='df -h'
 	alias free='free -m'
-	alias mount='mount | column -t'
 
 	alias ha='history -a'
 	alias hn='history -n'
 	alias xbvi="./xirrus_build -v install"
 }
 
+init_ixia () {
+	export P4CLIENT=egates_egates-vm_cli
+	export P4PORT=perforce:1666
+	export P4USER=egates
+
+	export P4DIFF=vimdiff
+	export P4DIFFUNICODE=vimdiff
+	export P4EDITOR=vim
+	export P4PAGER=vimpager
+}
+
+
 fun  () { fortune -a | fmt -80 -s | cowsay -$(shuf -n 1 -e b d g p s t w y) -f $(shuf -n 1 -e $(cowsay -l | tail -n +2)) -n; }
 vie  () { bin=$(which "$1") && vim "$bin"; }
 cate () { bin=$(which "$1") && cat "$bin"; }
 which () {
 	{ alias; declare -f; } | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot "$@"
 }
+
+mount () {
+	if [ "$#" -eq "0" ]; then
+		/bin/mount | column -t
+	else
+		/bin/mount "$@"
+	fi
+}
 # this is where it actually starts, might think of it as
 # main()
 
 init_misc
 init_alias
 init_prompt
+init_ixia
 
 [ -n "$XIRRUS_ROOT" ] && init_xirrus