Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6093ecbb60 | ||
|
|
e289549a50 | ||
|
|
9d7738d14d | ||
|
|
7827907154 | ||
|
|
0ed6f045f6 |
@@ -84,7 +84,7 @@ alias glsum='git diff --name-only --diff-filter=U' # Show unmerged (conflicted)
|
||||
alias ggui='git gui'
|
||||
|
||||
# home
|
||||
alias ghm='cd '\''$(git rev-parse --show-toplevel)'\''' # Git home
|
||||
alias ghm='cd "$(git rev-parse --show-toplevel)"' # Git home
|
||||
# appendage to ghm
|
||||
if ! _command_exists gh; then
|
||||
alias gh='ghm'
|
||||
|
||||
@@ -18,7 +18,7 @@ function _set_pkg_aliases()
|
||||
alias kcgpan='kubectl get pods --all-namespaces'
|
||||
alias kcgdan='kubectl get deployments --all-namespaces'
|
||||
# launches a disposable netshoot pod in the k8s cluster
|
||||
alias kcnetshoot='kubectl run --generator=run-pod/v1 netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
|
||||
alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash'
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
@@ -3,13 +3,20 @@ about-alias 'systemd service'
|
||||
|
||||
case $OSTYPE in
|
||||
linux*)
|
||||
# Improve aliases by bringing the common root `sc|scd` + `sre` for action + `u` for user
|
||||
alias sc='systemctl'
|
||||
alias scr='systemctl daemon-reload'
|
||||
alias scu='systemctl --user'
|
||||
alias scur='systemctl --user daemon-reload'
|
||||
alias scdr='systemctl daemon-reload'
|
||||
alias scdru='systemctl --user daemon-reload'
|
||||
alias scr='systemctl restart'
|
||||
alias scru='systemctl --user restart'
|
||||
alias sce='systemctl stop'
|
||||
alias scue='systemctl --user stop'
|
||||
alias sceu='systemctl --user stop'
|
||||
alias scs='systemctl start'
|
||||
alias scus='systemctl --user start'
|
||||
alias scsu='systemctl --user start'
|
||||
# Keeping previous aliases for a non-breaking change.
|
||||
alias scue='sceu'
|
||||
alias scus='scsu'
|
||||
alias scur='scdru'
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user