-
Notifications
You must be signed in to change notification settings - Fork 1
/
.alias
32 lines (31 loc) · 1.27 KB
/
.alias
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
# Interactive operation...
#alias cp='cp -i'
#alias mv='mv -i'
alias rm='rm -i'
# Default to human readable figures
alias df='df -h'
alias du='du -h'
# enable color support of ls and also add handy aliases
alias grep='grep -i --color=auto' # show differences in colour
alias egrep='egrep -i --color=auto' # show differences in colour
alias fgrep='fgrep -i --color=auto' # show differences in colour
alias tree='tree -C' # nice alternative to 'recursive ls'
alias atree='tree -Ca' # tree that shows all
alias dtree='tree -Cd' # just dirs
alias stree='tree -Csha' # size of all files
# Some shortcuts for directory movement
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
# kube
alias k='kubectl'
alias kc='kubectl config set current-context'
# work
alias gc='git commit -sv'
alias ks='gpg-connect-agent "scd serialno" "learn --force" /bye'
alias terra-fix='export AWS_PROFILE="default" ; export AWS_SDK_LOAD_CONFIG=1 ; terraform workspace select dev'
aws_login ()
{
echo https://signin.aws.amazon.com/switchrole\?roleName=itx-admin\&account=$(aws --profile "$1" sts get-caller-identity | jq '.Account' | tr -d \")\&displayName=${1}
}