Skip to content

Commit

Permalink
remove pyenv rich lazygit, add ruff and uv
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightXiaoHan committed Nov 8, 2024
1 parent 3f4ccaa commit 6198ffb
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 23 deletions.
9 changes: 0 additions & 9 deletions general/fish/config-linux.fish
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,6 @@ set -gx MAMBA_ROOT_PREFIX $INSTALL_DIR/miniconda
set -gx PIPX_HOME $INSTALL_DIR/pipx
set -gx PIPX_BIN_DIR $INSTALL_DIR/bin

# pyenv
set -gx MAKE_OPTS -j(nproc --ignore=1) # pyenv set MAKE_OPTS to number of cores minus 1
set -gx PYENV_ROOT $INSTALL_DIR/pyenv
set -gx PATH $PYENV_ROOT/bin $PATH
# if pyenv exists, initialize it
if test -f $PYENV_ROOT/bin/pyenv
pyenv init - | source
end

set -gx CPPFLAGS "-I$CONDA_PREFIX/include " $CPPFLAGS
set -gx LDFLAGS "-L$CONDA_PREFIX/lib " $LDFLAGS
set -gx CONFIGURE_OPTS "-with-openssl=$CONDA_PREFIX " $CONFIGURE_OPTS
Expand Down
10 changes: 3 additions & 7 deletions general/fish/config-osx.fish
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# If /opt/homebrew/bin is not in PATH, add it
if not contains $PATH "/opt/homebrew/bin"
fish_add_path /opt/homebrew/bin
if not contains $PATH /opt/homebrew/bin
fish_add_path /opt/homebrew/bin
end

if command -q pyenv 1>/dev/null 2>&1; and status --is-interactive
pyenv init - | source
end

set -gx MAKE_OPTS -j(sysctl -n hw.ncpu) # pyenv set MAKE_OPTS to number of cores minus 1
set -gx MAKE_OPTS -j(sysctl -n hw.ncpu) # set MAKE_OPTS to number of cores minus 1
set -gx LANG en_US.UTF-8
set -gx LC_ALL en_US.UTF-8
4 changes: 2 additions & 2 deletions homecli/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,13 @@ def install_conda():
"tmux",
"libcurl",
"pipx",
"uv",
"ruff",
"compilers",
"zlib",
"nodejs",
"gh",
"jq",
"lazygit",
]
if ARCHITECTURE in ("x86_64", "amd64"):
command.extend(
Expand Down Expand Up @@ -251,7 +252,6 @@ def install_conda():
env["PIPX_HOME"] = os.path.join(CACHE_DIR, "pipx")
env["PIPX_BIN_DIR"] = os.path.join(CACHE_DIR, "bin")
for package in [
"rich-cli",
"git+https://github.com/BrightXiaoHan/ssr-command-client.git@master",
]:
subprocess.run(
Expand Down
1 change: 0 additions & 1 deletion scripts/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ scoop install main/gh
scoop install main/sed
scoop install main/uv
scoop bucket add extras
scoop install lazygit

Install-Module -Name PSFzf

Expand Down
1 change: 0 additions & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ if [ "$MODE" = "local-install" ] || [ "$MODE" = "online-install" ]; then
PATH="$INSTALL_DIR/miniconda/bin:$INSTALL_DIR/nodejs/bin:$PATH" \
HOMECLI_INSTALL_DIR=$INSTALL_DIR \
python3 homecli/install.py
curl https://pyenv.run | PYENV_ROOT="$INSTALL_DIR/pyenv" bash
mv $HOME/.local/share/nvim $INSTALL_DIR/nvim
ln -sf $INSTALL_DIR/nvim $HOME/.local/share/nvim
elif [ "$MODE" = "unpack" ]; then
Expand Down
4 changes: 2 additions & 2 deletions scripts/install_macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ ln -sf $DIR/mambarc ~/.mambarc

brew install --quiet \
git-lfs tmux fish neovim ripgrep fzf node aliyunpan trzsz-ssh \
cmake poetry pipx starship zoxide openssh rich-cli \
openssl readline sqlite3 xz zlib gh gnu-sed lazygit uv
cmake poetry pipx starship zoxide openssh \
openssl readline sqlite3 xz zlib gh gnu-sed uv

# install font
brew tap homebrew/cask-fonts
Expand Down
2 changes: 1 addition & 1 deletion scripts/pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ cd $INSTALL_DIR
rm -rf $INSTALL_DIR/packed
mkdir $INSTALL_DIR/packed
tar --exclude="__pycache__" -cvf $INSTALL_DIR/packed/homecli.tar.gz \
HOME bin miniconda.tar.gz pyenv pipx nvim
HOME bin miniconda.tar.gz pipx nvim
rm miniconda.tar.gz
cp $INSTALL_DIR/HOME/scripts/install.sh \
$INSTALL_DIR/HOME/scripts/uninstall.sh \
Expand Down

0 comments on commit 6198ffb

Please sign in to comment.