-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbash_aliases
99 lines (84 loc) · 2.77 KB
/
bash_aliases
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
#*****************************************************************
# Copyright (c) 2013 The 6Th Column Project
# All rights reserved.
#*****************************************************************
#
# Organization: A Couple of Guys That Need A Life
# Directorate: Computation
# Department: Computing Applications and Research
# Program: Tom Foolery
# Project: BASH-FOO
# First Authors: Gavin M. Bell ([email protected]) &
# Charles Doutriaux ([email protected])
#
# Description:
# A clean and easy way to setup your bash environment that is hassle free.
# We use lots of different machines... it makes it less painful
#
#*****************************************************************
#****************
#General
#****************
alias backup="rsync --archive --verbose --progress --stats --compress --rsh=/usr/bin/ssh --recursive --times --perms --links --update"
alias src='source ~/.bashrc'
alias beroot='sudo -s'
alias c=clear
alias dirs='dirs -v'
alias vt='set term=vt100'
alias NODISP='unsetenv DISPLAY'
alias ..='cd ..'
alias ...='cd ../..'
alias .='echo $cwd'
alias ll='ls -l'
alias dir=ll
alias lst='ls -FAlt | less'
alias lr='ls -rt'
alias lrt='ls -lrth'
alias lrtl='ls -lrth | less'
alias lart='ls -larth'
alias lartl='ls -larth | less'
alias la='ls -FA'
alias lf='ls -Fg'
alias lc='ls -Cg'
alias a=alias
alias h=history
alias grep='grep --color=auto'
#alias hist=history same as h
alias pd=pushd
alias push=pushd
alias pop=popd
alias md=mkdir
alias rd=rmdir
alias cls=clear
alias screen='screen -R'
alias screen_here='screen -d'
alias screen_HERE='screen -D'
alias pss='ps auxw | grep cue'
alias whom='who | sort | more'
alias wsm='w | sort | more '
alias emacs='emacs -bg black -fg wheat '
alias e='/usr/bin/emacs -nw'
alias close='eject -t'
#alias for using python v3
alias python="/usr/local/bin/python3"
alias pip="/usr/local/bin/pip3"
#alias xterm='xterm -sb -sl 5000 -bg black -fg wheat &'
alias xterm='xterm -sb -sl 5000 -bg grey5 -fg wheat &'
alias findsrc="find -name '*.c' -o -name '*.h' -o -name '*.cc' -o -name '*.hpp' -o -name '*.cpp' -o -name '*.py'"
# Emacs under X11
#alias emacsserver="\emacs --daemon"
#alias emacs="emacsclient -c"
# Emacs under MacOS
alias emacsserver="/Applications/Emacs.app/Contents/MacOS/Emacs --daemon"
alias emacs="/Applications/Emacs.app/Contents/MacOS/bin/emacsclient -c "
#Google Chrome
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome "
# super user alias
alias please='sudo'
# allowing remote login (via ssh) into this machine
alias ssh-allow?='sudo systemsetup -getremotelogin'
alias ssh-allow='sudo systemsetup -setremotelogin on'
alias ssh-deny='sudo systemsetup -setremotelogin off'
# (note: for git aliases see bash_git file)
alias t=task
alias bkuphist='cp ~/.bash_history{,.bak}'