feat(zsh): add some scripts and aliases

This commit is contained in:
Matej Janezic 2023-06-16 17:23:38 +02:00
parent 60a32a46bd
commit bd8ff47bf2
Signed by: janezicmatej
SSH Key Fingerprint: SHA256:3vE2ixAKI8uRNhob5xDwoa9mMPUsxsM4QRHNcPuMHew
2 changed files with 11 additions and 3 deletions

View File

@ -12,10 +12,9 @@ alias temp="cd $HOME/Desktop/temp"
alias accenton="defaults write -g ApplePressAndHoldEnabled -bool true" alias accenton="defaults write -g ApplePressAndHoldEnabled -bool true"
alias accentoff="defaults write -g ApplePressAndHoldEnabled -bool false" alias accentoff="defaults write -g ApplePressAndHoldEnabled -bool false"
# docker # git
alias dps="docker ps --format table'{{ .ID }}\t{{ .Image }}\t{{ .Ports}}\t{{ .Names }}'"
alias gros="git reset origin/$(git_current_branch) --soft" alias gros="git reset origin/$(git_current_branch) --soft"
alias gcan="git commit -v --amend --no-edit"
# unsorted # unsorted
alias ci="glab ci list" alias ci="glab ci list"

View File

@ -80,3 +80,12 @@ function lh {
open "http://localhost:$PORT" open "http://localhost:$PORT"
} }
function dps {
if [[ -z $1 ]]; then
docker ps --format table'{{ .ID }}\t{{ .Image }}\t{{ .Ports}}\t{{ .Names }}'
else
docker ps --format table'{{ .ID }}\t{{ .Image }}\t{{ .Ports}}\t{{ .Names }}' | grep $1
fi
}