1
0
mirror of https://github.com/artizirk/dotfiles.git synced 2024-11-22 00:10:59 +02:00

Make new-scrach use local variables

This commit is contained in:
Arti Zirk 2023-06-21 20:58:08 +03:00
parent d3035549a5
commit b47f79401f

4
.zshrc
View File

@ -182,8 +182,8 @@ setopt pushdminus
# Utility functions
function new-scratch {
cur_dir="$HOME/scratch"
new_dir="$HOME/tmp/scratch-`date +'%s'`"
local cur_dir="$HOME/scratch"
local new_dir="$HOME/tmp/scratch-`date +'%s'`"
mkdir -p $new_dir
ln -nfs $new_dir $cur_dir
cd $cur_dir