mirror of
https://github.com/artizirk/dotfiles.git
synced 2024-11-22 08:20:59 +02:00
Make new-scrach use local variables
This commit is contained in:
parent
d3035549a5
commit
b47f79401f
4
.zshrc
4
.zshrc
@ -182,8 +182,8 @@ setopt pushdminus
|
|||||||
# Utility functions
|
# Utility functions
|
||||||
|
|
||||||
function new-scratch {
|
function new-scratch {
|
||||||
cur_dir="$HOME/scratch"
|
local cur_dir="$HOME/scratch"
|
||||||
new_dir="$HOME/tmp/scratch-`date +'%s'`"
|
local new_dir="$HOME/tmp/scratch-`date +'%s'`"
|
||||||
mkdir -p $new_dir
|
mkdir -p $new_dir
|
||||||
ln -nfs $new_dir $cur_dir
|
ln -nfs $new_dir $cur_dir
|
||||||
cd $cur_dir
|
cd $cur_dir
|
||||||
|
Loading…
Reference in New Issue
Block a user