[fix] Remove some redundant stuff and add stuff for macos
This commit is contained in:
14
config/fish/conf.d/00brew.fish
Normal file
14
config/fish/conf.d/00brew.fish
Normal file
@@ -0,0 +1,14 @@
|
||||
if [ (uname) = "Darwin" ]
|
||||
set arch (arch)
|
||||
if [ "$arch" = "i386" ]
|
||||
eval /usr/local/Caskroom/miniconda/base/bin/conda "shell.fish" "hook" $argv | source
|
||||
/usr/local/bin/brew shellenv | source
|
||||
export PATH="/usr/local/opt/llvm/bin:$PATH"
|
||||
else
|
||||
eval /opt/homebrew/Caskroom/miniconda/base/bin/conda "shell.fish" "hook" $argv | source
|
||||
/opt/homebrew/bin/brew shellenv | source
|
||||
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
|
||||
end
|
||||
|
||||
export XDG_CONFIG_HOME="/Users/fs0c131y/.config"
|
||||
end
|
||||
3
config/fish/conf.d/99-ports.fish
Normal file
3
config/fish/conf.d/99-ports.fish
Normal file
@@ -0,0 +1,3 @@
|
||||
if [ (uname) = "Darwin" ]
|
||||
export PATH="/opt/local/bin:$PATH"
|
||||
end
|
||||
@@ -1 +0,0 @@
|
||||
alias mbsync 'mbsync -c ~/.config/isync/config'
|
||||
@@ -1,3 +0,0 @@
|
||||
export PATH="$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/:$PATH"
|
||||
export CC_aarch64_linux_android=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
|
||||
export CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android24-clang
|
||||
@@ -1,2 +0,0 @@
|
||||
# GPG
|
||||
export GPG_TTY=(tty)
|
||||
2
config/fish/conf.d/fzf.fish
Normal file
2
config/fish/conf.d/fzf.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
# export FZF_DEFAULT_COMMAND="fd --type f --hidden --exclude .git"
|
||||
export FZF_DEFAULT_COMMAND="fd --type f"
|
||||
1
config/fish/conf.d/nvim.fish
Normal file
1
config/fish/conf.d/nvim.fish
Normal file
@@ -0,0 +1 @@
|
||||
export EDITOR=nvim
|
||||
28
config/fish/conf.d/nvm.fish
Normal file
28
config/fish/conf.d/nvm.fish
Normal file
@@ -0,0 +1,28 @@
|
||||
function _nvm_install --on-event nvm_install
|
||||
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
||||
set --universal nvm_data $XDG_DATA_HOME/nvm
|
||||
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
||||
|
||||
test ! -d $nvm_data && command mkdir -p $nvm_data
|
||||
echo "Downloading the Node distribution index..." 2>/dev/null
|
||||
_nvm_index_update $nvm_mirror $nvm_data/.index
|
||||
end
|
||||
|
||||
function _nvm_update --on-event nvm_update
|
||||
set --query XDG_DATA_HOME || set --local XDG_DATA_HOME ~/.local/share
|
||||
set --universal nvm_data $XDG_DATA_HOME/nvm
|
||||
set --query nvm_mirror || set --universal nvm_mirror https://nodejs.org/dist
|
||||
end
|
||||
|
||||
function _nvm_uninstall --on-event nvm_uninstall
|
||||
command rm -rf $nvm_data
|
||||
|
||||
set --query nvm_current_version && _nvm_version_deactivate $nvm_current_version
|
||||
|
||||
set --names | string replace --filter --regex -- "^nvm" "set --erase nvm" | source
|
||||
functions --erase (functions --all | string match --entire --regex -- "^_nvm_")
|
||||
end
|
||||
|
||||
if status is-interactive && set --query nvm_default_version && ! set --query nvm_current_version
|
||||
nvm use $nvm_default_version >/dev/null
|
||||
end
|
||||
Reference in New Issue
Block a user