-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
52 lines (39 loc) · 878 Bytes
/
aliases
File metadata and controls
52 lines (39 loc) · 878 Bytes
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
#!/bin/bash
alias f=fg
alias k=kubectl
alias vcat=vimcat
# git
alias g='git'
alias gst='git status'
alias gco='git checkout'
alias gcm='git commit -m'
alias p=pnpm
alias t=turbo
if command -v eza >/dev/null; then
alias ls='eza'
fi
if command -v bat >/dev/null; then
alias cat='bat'
fi
function vim() {
nvim $*
}
function kubecomplete() {
source <(kubectl completion zsh)
}
function mkcd() {
mkdir $1
cd $1
}
function start_colima() {
colima start --arch aarch64 --vm-type=vz --vz-rosetta --cpu 4 --memory 8 --mount-inotify
}
function awsso() {
export AWS_PROFILE="$(cat ~/.aws/credentials | rg '^\[(.+)\] # sso$' -r '$1' | fzf --header "choose aws profile" --height 20)"
if [ -z "$AWS_PROFILE" ]; then
echo "noop: no profile selected" >/dev/stderr
exit 1
fi
echo "logging in to $AWS_PROFILE"
aws sso login --profile "$AWS_PROFILE"
}