-
Notifications
You must be signed in to change notification settings - Fork 0
/
.10-aliases
48 lines (43 loc) · 2.09 KB
/
.10-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
alias ls="ls -la -G"
alias gc="git commit"
alias gs="git status"
alias gcl="git clone"
alias gd="git diff"
alias gp="git push origin"
alias ga="git add"
alias gr="git reset HEAD"
alias dcbpu='docker-compose pull && docker-compose up --build'
alias dcbpur='docker-compose pull && docker-compose up --build; docker-compose rm -f -v'
alias dcbu='docker-compose up --build'
alias dcbur='docker-compose up --build; docker-compose rm -f -v'
alias dclr='docker rm -f -v $(docker ps -aq)'
alias dcp='docker-compose pull'
alias dcu='docker-compose up'
alias bdcbpur='docker-compose pull && docker-compose up --build --no-color | sed -E -l '\''s/.*\| //'\'' | bunyan && docker-compose rm -f -v'
alias bdcbur='docker-compose up --build --no-color | sed -E -l '\''s/.*\| //'\'' | bunyan && docker-compose rm -f -v'
alias bdcur='docker-compose up --no-color | sed -E -l '\''s/.*\| //'\'' | bunyan && docker-compose rm -f -v'
alias bdcbu='docker-compose up --build --no-color | sed -E -l '\''s/.*\| //'\'' | bunyan'
alias bdcbu='docker-compose up --no-color | sed -E -l '\''s/.*\| //'\'' | bunyan'
alias bdcl='docker-compose logs -f --no-color | sed -E -l '\''s/.*\| //'\'' | bunyan'
alias bdcll='docker-compose logs -f --no-color --tail 10 | sed -E -l '\''s/.*\| //'\'' | bunyan'
alias limamultiplatform='lima sudo systemctl start containerd && \
lima sudo docker run --privileged --rm tonistiigi/binfmt:qemu-v7.0.0-28@sha256:66e11bea77a5ea9d6f0fe79b57cd2b189b5d15b93a2bdb925be22949232e4e55 --install all'
alias week='date +%V'
alias lpc="lpass show -pcF"
alias :q='exit'
function ocpf() {
local POD_NAME=$(oc get pods | grep -m 1 "$1" | awk '{ print $1 }')
echo "Port-forwarding port $2 to pod $POD_NAME"
oc port-forward ${POD_NAME} $2
}
function ocbl() {
local POD_NAME=$(oc get pods | grep -m 1 "$1" | awk '{ print $1 }')
echo "Going to stream logs of $POD_NAME, starting with last 20 lines..."
sleep 1
oc logs --tail 20 -f ${POD_NAME} | bunyan
}
[ "$(uname)" = "Darwin" ] && {
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# alias mma='sudo /usr/sbin/dseditgroup -o edit -a $USERNAME -t user admin'
}