# getting AUR repos with ease
aur_clone () {
    git clone https://aur.archlinux.org/${1}.git
}

# jupyter stuff
add-ipy-kernel () {
    python -m ipykernel install --user --name $1 --display-name "$1"
}


# function to test output code of a command
outcode () {
    $1
    echo $!
}


# get the dependencies from pypi without installing the things
pip-list-deps () {
    PACKAGE=$1
    pip download $PACKAGE -d /tmp --no-binary :all: \
    | grep Collecting \
    | cut -d' ' -f2 \
    | grep -v $PACKAGE
}


# conda
reset-conda-none () {
    rm -rf $ANACONDA/envs/none
    mkdir -p $ANACONDA/envs/none/bin
}


# cookiecutter stuff
cutcookie () {
    cookiecutter $1
    echo "INFO: Enjoy your work!"
}

mkprojectdatascience () {
    cutcookie $GITREPOS/cookiecutters/cookiecutter-data-science
}

# BCH VPN
vpn-bch () {
  sudo openconnect --juniper -C "DSID=${1}" https://vpn.childrens.harvard.edu
}


# update the zshrc repo
update-zshrc-repo () {
    ORIGDIR=$PWD
    cd $ZSHRC_BASE
    git pull
    cd $ORIGDIR
    zgen reset
    source ~/.zshrc
}
# getting AUR repos with ease
aur_clone () {
    git clone https://aur.archlinux.org/${1}.git
}

# jupyter stuff
add-ipy-kernel () {
    python -m ipykernel install --user --name $1 --display-name "$1"
}


# function to test output code of a command
outcode () {
    $1
    echo $!
}


# get the dependencies from pypi without installing the things
pip-list-deps () {
    PACKAGE=$1
    pip download $PACKAGE -d /tmp --no-binary :all: \
    | grep Collecting \
    | cut -d' ' -f2 \
    | grep -v $PACKAGE
}


# conda
reset-conda-none () {
    rm -rf $ANACONDA/envs/none
    mkdir -p $ANACONDA/envs/none/bin
}


# cookiecutter stuff
cutcookie () {
    ca cookiecutter
    echo "INFO: Changed conda envs."
    cookiecutter $1
    echo "INFO: Switching conda envs to 'none'."
    source dact
    echo "INFO: Enjoy your work!"
}

mkprojectdatascience () {
    cutcookie $GITREPOS/cookiecutters/cookiecutter-data-science
}

# BCH VPN
vpn-bch () {
  sudo openconnect --juniper -C "DSID=${1}" https://vpn.childrens.harvard.edu
}


# update the zshrc repo
update-zshrc-repo () {
    ORIGDIR=$PWD
    cd $ZSHRC_BASE
    git pull
    cd $ORIGDIR
    zgen reset
    source ~/.zshrc
}
--- 
+++ 
@@ -35,11 +35,7 @@
 
 # cookiecutter stuff
 cutcookie () {
-    ca cookiecutter
-    echo "INFO: Changed conda envs."
     cookiecutter $1
-    echo "INFO: Switching conda envs to 'none'."
-    source dact
     echo "INFO: Enjoy your work!"
 }
 
fix(cutcookie): Stop errors with conda env

- stop trying to change into dedicated conda env
- dont care where cookie cutter is installed
- assume cookiecutter is installed
