summaryrefslogtreecommitdiff
path: root/dotrc/_bash_aliases
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2010-11-09 14:36:37 +0000
committerIan C <ianc@noddybox.co.uk>2010-11-09 14:36:37 +0000
commit4ba9cc5bf35ec57c5d684a290b603488ca699e7d (patch)
treef54ff8f793cb47e8d72518c68bf2efc346f5bc86 /dotrc/_bash_aliases
parentf6294c8fc52d500dbc4653327bc75278520146ff (diff)
Mods to dotrc files.
Diffstat (limited to 'dotrc/_bash_aliases')
-rw-r--r--dotrc/_bash_aliases41
1 files changed, 41 insertions, 0 deletions
diff --git a/dotrc/_bash_aliases b/dotrc/_bash_aliases
new file mode 100644
index 0000000..36212eb
--- /dev/null
+++ b/dotrc/_bash_aliases
@@ -0,0 +1,41 @@
+export EDITOR=vim
+
+alias V="vi"
+
+alias ctags="ctags --langmap=c:.c.pc"
+
+alias lss="ls -Fx"
+alias la="lss -a"
+alias va="vi $HOME/.bash_aliases"
+alias sa=". $HOME/.bash_aliases"
+alias lsd="ls -Fx1 | egrep /"
+alias pss="ps -ef"
+alias psu="ps -f -u $LOGNAME"
+alias h="history"
+alias p="pwd"
+
+alias wenv="env | egrep "
+
+if [ -z "$XEDARG" ] ; then
+ export XEDARG="-i -r"
+fi
+
+if [ -e $HOME/.bash_dirs ] ; then
+ . $HOME/.bash_dirs
+fi
+
+# Directory setting
+#
+function dset
+{
+ if [ "$1" == "" ] ; then
+ echo usage: dset name
+ else
+ echo "export $1=\"`pwd`\" ; alias $1='cd \"\$$1\"'" >> $HOME/.bash_dirs
+ . $HOME/.bash_dirs
+ fi
+}
+
+alias dsrc=". $HOME/.bash_dirs"
+alias vd="vi $HOME/.bash_dirs"
+alias dwot="alias | egrep cd"