-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_bashrc
More file actions
executable file
·37 lines (33 loc) · 1.95 KB
/
Copy path_bashrc
File metadata and controls
executable file
·37 lines (33 loc) · 1.95 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
export PS1="[\u@\h][\w]\$"
# some aliases to search through the source tree (or any directory structure)
# find in text files
alias vim='/usr/local/bin/vim'
alias fit='/usr/bin/find . -name .svn -prune , "(" -iname "*.txt" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in h/hpp files
alias fic='/usr/bin/find . -name .svn -prune , "(" -iname "*.cpp" -o -iname "*.c" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in h/hpp files
alias fih='/usr/bin/find . -name .svn -prune , "(" -iname "*.hpp" -o -iname "*.h" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in cpp/hpp files
alias fich='/usr/bin/find . -name .svn -prune , "(" -iname "*.[ch]pp" -o -iname "*.[ch]" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in all files
alias fia='/usr/bin/find . -name .svn -prune , "(" -type f -name "*" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in make-ish files files
alias fim='/usr/bin/find . -name .svn -prune , "(" -iname "*make*" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in jam files
alias fij='/usr/bin/find . -name .svn -prune , "(" -name "Jamfile" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in python files
alias fip='/usr/bin/find . -name .svn -prune , "(" -iname "*.py" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# find in restructured text files
alias fir='/usr/bin/find . -name .svn -prune , "(" -iname "*.rst" ")" -a "(" -type f -o -type l ")" -a -print0 | xargs -0r egrep -n'
# directory changing shortcuts
alias cx="cd .."
alias cxx="cd ../.."
alias cxxx="cd ../../.."
alias cxxxx="cd ../../../.."
alias cxxxxx="cd ../../../../.."
alias cxxxxxx="cd ../../../../../.."
alias work='ssh -v -L 3390:ianr-ws:3389 ianr@vpn.hitachi-id.com'
alias gitp='git push -u origin master'
alias gitc='git commit -a -m'
alias python='python3'
alias easy_install='easy_install-3.3'