Skip to content

Commit

Permalink
More MacOS support
Browse files Browse the repository at this point in the history
  • Loading branch information
JafarAbdi committed Jul 31, 2024
1 parent 9071569 commit 4230996
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tmux/plugins
mynotes
# pixi environments
.pixi
scripts/.local/bin/rgr
33 changes: 27 additions & 6 deletions fish/conf.d/installs.fish
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,21 @@ function install-rust
end
function install-nvim
rm ~/.local/bin/nvim || true
if set -q argv[1] && test $argv[1] = "nightly"
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O ~/.local/bin/nvim
if test (uname -s) = "Darwin"
cd
rm -rf nvim-macos-arm64.tar.gz || true
wget https://github.com/neovim/neovim/releases/download/nightly/nvim-macos-arm64.tar.gz
xattr -c ./nvim-macos-arm64.tar.gz
tar xzvf nvim-macos-arm64.tar.gz
else
wget https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -O ~/.local/bin/nvim
rm ~/.local/bin/nvim || true
if set -q argv[1] && test $argv[1] = "nightly"
wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O ~/.local/bin/nvim
else
wget https://github.com/neovim/neovim/releases/latest/download/nvim.appimage -O ~/.local/bin/nvim
end
chmod +x ~/.local/bin/nvim
end
chmod +x ~/.local/bin/nvim
end
function install-tmux
Expand Down Expand Up @@ -287,6 +295,15 @@ function install-fd
cd -
end
function install-repgrep
set -l TMP_DIR (mktemp -d -p /tmp install-XXXXXX)
cd $TMP_DIR
install-from-github acheronfail/repgrep "repgrep.*apple-darwin.tar.gz"
tar -xzf repgrep* --strip-components=1
mv rgr ~/.local/bin
mv complete/rgr.fish ~/.config/fish/completions/
end
function install-mold
if test (lsb_release -sr) = "unstable"
sudo apt install -y mold
Expand Down Expand Up @@ -363,7 +380,11 @@ function install-lua-lsp
end
function install-luacheck
sudo apt install -y luarocks
if test (uname -s) = "Darwin"
brew install luarocks
else
sudo apt install -y luarocks
end
luarocks install luacheck --local
end
Expand Down

0 comments on commit 4230996

Please sign in to comment.