Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
breck7 committed Oct 19, 2024
1 parent ffb949d commit 6fa0f37
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions sf.scroll
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
date 2024-10-19
tags All Programming
title sf: instant scratch folders

header.scroll
printTitle
# a bash one-liner
printAuthors
printDate

thinColumns 1

I make many scratch folders and often hit this:
code
$ cd ~
$ ~ mkdir tmp
mkdir: tmp: File exists
$ ~ mkdir tmp2
mkdir: tmp2: File exists
$ ~ mkdir tmp22
mkdir: tmp22: File exists

***

Now I just type `sf`

code
$ sf
$ 2024-10-19 pwd
/Users/breck/sf/2024-10-19

***

The line I added to `~/.zprofile`:

endColumns

container 720px

code
alias sf='date_dir=$(date +%Y-%m-%d) && mkdir -p ~/sf/$date_dir && cd ~/sf/$date_dir'

****

footer.scroll

0 comments on commit 6fa0f37

Please sign in to comment.