-
Notifications
You must be signed in to change notification settings - Fork 0
/
_bash_aliases
executable file
·52 lines (43 loc) · 956 Bytes
/
_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
# -*- shell-script -*-
# misc aliases
# print the time in seconds since the epoch (unixy thing)
alias ptime="perl -e 'print time, \"\\n\";'"
# shortcuts for some commands
alias j='jobs -l'
alias up='uptime'
alias pop='popd'
alias pd='pushd'
# various ls options
alias la='ls -aC'
alias laf='ls -aFC'
alias lf='ls -FC'
alias ls='ls -C'
alias ll='ls -al'
# manage a local vnc server
alias vncstart='vncserver -geometry 1200x750'
alias vncstop='vncserver -kill :1'
# mips had some weird su things, but I mainly use sudo now.
case $MACH_TYPE in
mips)
alias su='/bin/su -e'
alias su1='ssu -e'
;;
*)
alias su1='su root'
;;
esac
case "$TERM" in
xterm*)
# includes iTerm2
alias 25x80='echo -en "\033[8;25;80t"'
;;
esac
if qtype ack; then
:
elif qtype ack-grep; then # silly linux
alias ack='ack-grep'
else
echo "you probably want to install ack at some point"
fi
# shortcut to pyenv
alias ve='pyenv-virtualenv'