What I use for git:
alias gs "git status" alias ga "git add" alias gc "git commit" alias gp "git push" alias gpl "git pull" alias gch "git checkout" alias gt "git add -u && git commit --amend --no-edit && git push -f" alias gl "git log"
For hugo:
alias hs "hugo server --disableFastRender --watch -v"
To generate a UUID (universally unique identifier) quickly:
alias uuid="python -c 'import sys,uuid; sys.stdout.write(uuid.uuid4().hex)' | pbcopy && pbpaste && echo"
To do an ls every time I do a cd:
ls
cd
function cd if count $argv > /dev/null builtin cd "$argv"; and ls else builtin cd ~; and ls end end
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What I use for git:
For hugo:
To generate a UUID (universally unique identifier) quickly:
To do an
ls
every time I do acd
: