Monday, November 27, 2017

Increase Productivity With Dynamic Enumerized Location Aliases

## Save directory location, Goto directory location 
## surprisingly effective at increasing productivity 
## save it in one shell and all shells immediately have 
## access to it. s1 in a shell; g1 gets there in any 
## other shell. 
alias s1='pwd > "/tmp/__${USER}_savedir1__"' 
alias s2='pwd > "/tmp/__${USER}_savedir2__"' 
alias s3='pwd > "/tmp/__${USER}_savedir3__"' 
alias g1='cd "$(< "/tmp/__${USER}_savedir1__")"' 
alias g2='cd "$(< "/tmp/__${USER}_savedir2__")"' 
alias g3='cd "$(< "/tmp/__${USER}_savedir3__")"' 

No comments:

Post a Comment