My favourite zsh/bash shortcuts (functions and aliases) A developer shared their favorite zsh/bash shortcuts, including functions and aliases for Git operations, file management, and image conversion. The shortcuts, many AI-generated, aim to save time on frequent tasks like branching, cherry-picking, and creating directories. My zsh profile is over 1000 lines at this point. A lot of that is functions I asked AI to generate for me, since it's fast, portable, and saves me a ton of typing. Here's the thing though: the shortcuts that save me the most time aren't the clever ones. They're the dumb ones. Things like clone instead of git clone && cd , or dir instead of mkdir -p && cd . Each one only saves a second or two, but I run them so often that it adds up fast. These are in no particular order, just the ones I reach for constantly. A few one-liners I have set up as plain aliases: alias gcp="git cherry-pick" alias git-append="git commit --amend --no-edit -a" gcp is self-explanatory. git-append amends the last commit with your currently staged and unstaged, thanks to -a changes without touching the commit message. Great for fixing up a commit you just made before you push. One of my most-used functions. Normally you have to remember whether a branch exists before deciding between git checkout