Skip to content

Instantly share code, notes, and snippets.

@mgurov
Last active March 6, 2025 18:25
Show Gist options
  • Save mgurov/4cb1e084c4500f2e49d62f2067080bbd to your computer and use it in GitHub Desktop.
Save mgurov/4cb1e084c4500f2e49d62f2067080bbd to your computer and use it in GitHub Desktop.
.zshrc
PROMPT='%10~ %# '
alias gitline='git log -n 1 --format=%s | xargs echo refs/heads/mykola | tr " :." _ | xargs git check-ref-format --normalize | xargs -I {} git push -f origin -o merge_request.create HEAD:{} || echo something went wrong'
alias drm='docker rm -f $(docker ps -aq)'
alias dcup='docker-compose up'
bindkey "^[^[[C" forward-word
bindkey "^[^[[D" backward-word
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
ffox() {
thiscmd=$history[$((HISTCMD))]
echo -ne "\033]0;$thiscmd\007"
/Applications/Firefox.app/Contents/MacOS/firefox -P $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment