3 ms·
In case anyone is looking for inspiration, my macOS homedir contains: # multiple organizations under Projects: ~/Projects/GitHub-org-name/repo-name # te
by bloopernova 3y ago
In case anyone is looking for inspiration, my macOS homedir contains:
# multiple organizations under Projects:
~/Projects/GitHub-org-name/repo-name
# temp files:
~/Scratch/0_jira
~/Scratch/1_temp
~/Scratch/2_builds
~/Scratch/9_archive
# Emacs org-mode files
~/Org
# Top-level screenshots
~/Screenshots
Using it with zoxide[1] allows me to run "z weba" and get taken to:
~/Projects/client_org/amazing-webapp
I also use a couple of helper functions in my zshrc while working in the Scratch directories:
# Marky Mark and the Function Bunch
function gcd {
git clone $1 && cd "$(basename "$_" .git)"
}
function showpath {
echo $PATH | sed -e $'s/:/\\\n/g'
}
if [[ $OSTYPE =~ ^darwin.* ]] then
function brewup {
brew update && brew upgrade && brew cleanup
}
fi
function mc {
command mkdir $1 && cd $1
}
function mcd {
local TODAYDATE
TODAYDATE=$(date +%F)
command mkdir ${TODAYDATE} && cd ${TODAYDATE}
}
function mce {
command mkdir ${EPOCHSECONDS} && cd ${EPOCHSECONDS}
}
EPOCHSECONDS comes from the zsh/datetime module[2]
[1] https://github.com/ajeetdsouza/zoxide https://github.com/ajeetdsouza/zoxide
[2] https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#The-zsh_002fdatetime-Module https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#The-...