Compare commits

..

1 Commits

Author SHA1 Message Date
e9993b0874 Add autoenv command to manage autoenv's
usage: autoenv [-h] {init,edit,deinit}

options:
        -h, --help  show this help message and exit

commands:
        init        add .enter and .exit scripts in current directory
        edit        edit .enter and .exit scripts in current directory
        deinit      remove .enter and .exit scripts in current directory

Fixes #9.
2018-04-26 20:18:47 +01:00

View File

@ -42,7 +42,7 @@ commands:
fi
# If vim exists, edit enter and exit scripts.
if which vim &> /dev/null; then
vim -p .enter .exit
vim -p $PWD/.enter $PWD/.exit
else
echo 'vim not found'; return 1
fi ;;