- # Make a directory and go into it
- function mkcd() { mkdir -p "$1" && cd "$1" }
- # Put file contents into Windows clipboard
- # Useful for WSL
- function clip() { clip.exe < "$1" }
- # Seamlessly add change to last commit
- function add-to-last-commit() {
- git add "$1"; git commit --amend --no-edit
- }
|