Browse Source

Make new-scrach use local variables

master
Arti Zirk 2 years ago
parent
commit
b47f79401f
  1. 4
      .zshrc

4
.zshrc

@ -182,8 +182,8 @@ setopt pushdminus @@ -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

Loading…
Cancel
Save