-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
48 lines (39 loc) · 1.27 KB
/
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
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias rgrep='grep -r --exclude-dir=.git --exclude-dir=.terraform'
alias ergrep='egrep -r --exclude-dir=.git --exclude-dir=.terraform'
alias ldapvi="ldapvi -D cn=admin,dc=atpla,dc=net"
alias lower="tr '[:upper:]' '[:lower:]'"
alias upper="tr '[:lower:]' '[:upper:]'"
alias vi="vim -p"
alias vim="vim -p"
alias view="vim -R"
alias watch="watch -n1"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias hr="\hr ="
alias hr1="\hr 🍎"
alias hr2="\hr 🍊"
alias hr3="\hr 🍌"
alias hr4="\hr 🍉"
alias hr5="\hr 🍒"
alias hr6="\hr 🥝"
which colordiff 2>/dev/null 1>/dev/null && alias diff=colordiff
alias curl="/usr/bin/env curl -K ~/.curlrc-local"
alias scp-notrust="scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
alias ssh-notrust="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
alias boid="tssh -A boid.lan tom"
alias home="tssh -A home.bamford.io tom"
alias st="tssh -A sysadmin.atpla.net"
# Open yml files with vim
if [ "${_SHELL}" = "zsh" ]; then
alias -s yml=vim
alias -s yaml=vim
fi
if [ "${OSTYPE}" = "linux-gnu" ]; then
alias ls='ls --color'
fi
which hub 2>/dev/null 1>/dev/null && alias git=hub
# vim: set ft=sh ts=2 sts=2 sw=2 et: