Insert the last argument of the previous terminal command

Today I learned that you can use !$ in bash to use the last argument of the previous command. The simplest example is: mkdir /some/long/path cd !$ You can do something similar in powershell by using a PSReadline binding: Set-PSReadLineKeyHandler -Chord "Alt+." -Function YankLastArg

Shell Check

Today I learned about ShellCheck which is essentially a linter for bash scripts. You can try it on the website but I recommend installing the vscode extension. I like that you can look up the rationale for each of the rules so it鈥檚 a great way to learn some best practices for bash scripts.