diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 6a55e07..42cb241 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -12,10 +12,9 @@ alias temp="cd $HOME/Desktop/temp" alias accenton="defaults write -g ApplePressAndHoldEnabled -bool true" alias accentoff="defaults write -g ApplePressAndHoldEnabled -bool false" -# docker -alias dps="docker ps --format table'{{ .ID }}\t{{ .Image }}\t{{ .Ports}}\t{{ .Names }}'" - +# git alias gros="git reset origin/$(git_current_branch) --soft" +alias gcan="git commit -v --amend --no-edit" # unsorted alias ci="glab ci list" diff --git a/zsh/scripts.zsh b/zsh/scripts.zsh index f36afdc..c4ac4dc 100644 --- a/zsh/scripts.zsh +++ b/zsh/scripts.zsh @@ -80,3 +80,12 @@ function lh { 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 +} +