-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
145 lines (91 loc) · 2.16 KB
/
.bashrc
File metadata and controls
145 lines (91 loc) · 2.16 KB
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
PS1="\[\033]0;\h\007\]\[\033[1;32m\][\@]\[\033[0m\]\[\033[1;33m\][\u@\h]\$(pwd)\[\033[0m\] > "
alias ls='ls --classify --color=tty' 2>/dev/null
alias grep='grep 2>/dev/null'
function ll
{
dir=0
if [ $# -eq 0 ] ; then
dir=0
elif [ $# -eq 1 ] ; then
first=$1
pos=${first:0:1};
if [ $pos == '-' ] ; then
dir=0;
else
dir=1
fi
else
dir=1
fi
if [ $dir -eq 0 ] ; then
ls --classify --color=tty $* 2>/dev/null
else
ls --classify --color=tty -d $* 2>/dev/null
fi
}
tty -s
if [ $? -eq 0 ] ; then
DoInteractive=0
else
DoInteractive=1
fi
# Can generate POD docs for this file by exectuting:
#../bin/shdoc file=kshrci
## POD_START
#pf_trace kshrci start
## =head1 Some settings to make vim the default editor.
##
## This should be in kshrci.peeterj instead but some people probably expect it now.
##
export VISUAL=vim
export EDITOR=vim
alias vi=vim
##
## =cut
## =head1
set -o vi
##
## This is my (Peeter's) preference (vi style command line completion).
## This should be in kshrci.peeterj instead but some people probably expect it now.
## Better would be just the following aliases to let people choose themselves (emacs is the default).
alias sv='set -o vi'
alias se='set -o emacs'
##
## =cut
## =head1
alias la='ls -a'
##
## ls with hidden files.
##
## =cut
## =head1
alias ll='ls -l'
##
## ls with times, owners, ...
##
## =cut
## =head1
alias b='cd ..'
##
## Chdir to parent dir.
##
## =cut
## =head1
alias pj='ps -ef | grep "^ *${USER?}" | sort -n -k 3 -k 2'
##
## Processes I (pj) Own. Should have called this something else or put it in kshrci.peeterj
##
## =cut
#pf_trace kshrci misc
## =head1
alias setdis='`getdisplay`'
##
## The getdisplay program will attempt to figure out the DISPLAY variable value from 'who' output, and other info, but can't
## adjust environment in the current shell. This alias takes the results and adjusts the current shell's DISPLAY var if possible.
##
## =cut
alias pp='ps -f -u $USER --forest'
alias results='cat ""`find . -name \*.res` > ./all.out'
alias ddr='cd `goToDump.pl`'
export PATH=$PATH:$HOME/.vim_backup/myTools/
export PATH=$PATH:$HOME/linuxConfig/