functions 299 B

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