aboutsummaryrefslogblamecommitdiff
path: root/sh/shrc.d/scr.sh
blob: 255b9322a5722f2761d9bb1915e76a17c71dad1e (plain) (tree)
1
2
3
4
5
6



                                                                            
                               
 
# Create a temporary directory and change into it, to stop me putting stray
# files into $HOME, and making the system do cleanup for me. Single optional
# argument is the string to use for naming the directory; defaults to "scr".
scr() {
    cd -- "$(mktd "${1:-scr}")"
}