summaryrefslogtreecommitdiff
path: root/dotrc/_alias
blob: 2b7287481940a2e3de0f7960693118c5ff0a3e6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
alias setcore="ulimit -c unlimited"

alias mem=free

#alias XTERM="xterm -vb -bg black -fg grey90 -cr red -sb -sl 5000 -sk -si -ls -geom 80x40 &"

alias diffsrc='rcsdiff *.[ch] *.html makefile >& diff.out'

alias ctags=exctags

alias vi=vim

alias gvim="gvim -geom 80x83"

alias V="vi"

alias ls="ls -Fx"
alias lsc="ls --color"
alias lrt="ls -lrt"
alias la="ls -a"
alias lsd="ls -1 | egrep /"

alias h="history|more"
alias hi="history 20"
alias p="pwd"

alias vc="vi ~/.alias"
alias sc="source ~/.alias"

alias wenv="env | egrep "
alias wal="alias | egrep "
alias wset="set | egrep "

alias pslink="/usr/sbin/ncpd -s /dev/ttyS1 -b 115200"
alias winamp="wine /home/wine/DriveC/Program\ Files/Winamp/winamp.exe"

alias bug="gvd"

alias status="cvs status | egrep Status:"

. ~/.b_dalias

# Vars
#
FIGNORE=.o


# Functions
#
function setenv ()
{
    export $1=$2
}

function vgrep()
{
    local vgargs
    local vgflist
    local vgexp

    if [ $1 == "-i" ] ; then
    	vgargs="-i"
	shift
    else
    	vgargs=""
    fi

    vgexp="$1"
    shift

    vgflist=`egrep -l $vgargs "$vgexp" $*`

    if [ "$vgflist" == "" ] ; then
    	echo "No matches found"
    else
    	vi -R -M -c "/$vgexp" $vgflist
    fi
}


# Directory setting aliases
#
alias dsrc="source ~/.b_dalias"

function dset ()
{
    echo "export $1=\"$PWD\" ; alias $1='cd \"$PWD\"'" >> ~/.b_dalias
    dsrc
}

alias dwot='alias | egrep "=.cd" | egrep -v dwot'
alias vd="vi ~/.b_dalias"