Skip to content

Commit

Permalink
Use this branch for setup
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Chancellor <[email protected]>
  • Loading branch information
nathanchance committed Dec 24, 2024
1 parent ddef79f commit c39a018
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bash/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ else
exit 1
fi

$dwnld_cmd https://github.com/nathanchance/env/tarball/main | tar -C "$tmp_dir" -xvzf - --strip-components=1
$dwnld_cmd https://github.com/nathanchance/env/tarball/nspawn | tar -C "$tmp_dir" -xvzf - --strip-components=1

python_setup=$tmp_dir/python/setup
if [ ! -d "$python_setup" ]; then
Expand Down
3 changes: 2 additions & 1 deletion fish/functions/user_setup.fish
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ function user_setup -d "Setup a user account, downloading all files and placing
git clone https://github.com/nathanchance/(basename $ENV_FOLDER).git $ENV_FOLDER; or return
end
end
git -C $ENV_FOLDER pull
git -C $ENV_FOLDER remote update origin
git -C $ENV_FOLDER reset --hard origin/nspawn
# Download and update forked fisher plugins
set forked_fisher_plugins \
Expand Down
4 changes: 2 additions & 2 deletions python/lib/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def chsh_fish(username):

def clone_env(username):
if not (env_tmp := Path('/tmp/env')).exists(): # noqa: S108
lib.utils.run(['git', 'clone', 'https://github.com/nathanchance/env', env_tmp])
lib.utils.run(['git', 'clone', '-b', 'nspawn', 'https://github.com/nathanchance/env', env_tmp])
chown(username, env_tmp)


Expand Down Expand Up @@ -465,7 +465,7 @@ def setup_initial_fish_config(username):
' return 1\n'
' end\n'
' if not test -d /tmp/env\n'
' git -C /tmp clone -q https://github.com/nathanchance/env\n'
' git -C /tmp clone -b nspawn -q https://github.com/nathanchance/env\n'
' or return\n'
' end\n'
' git -C /tmp/env pull -qr\n'
Expand Down

0 comments on commit c39a018

Please sign in to comment.