[fix] Remove some redundant stuff and add stuff for macos

This commit is contained in:
Uttarayan Mondal
2022-11-21 16:30:05 +05:30
parent 9f1af0fe14
commit 01c1b052ca
23 changed files with 576 additions and 35 deletions

View 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

View File

@@ -0,0 +1,3 @@
if [ (uname) = "Darwin" ]
export PATH="/opt/local/bin:$PATH"
end

View File

@@ -1 +0,0 @@
alias mbsync 'mbsync -c ~/.config/isync/config'

View File

@@ -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

View File

@@ -1,2 +0,0 @@
# GPG
export GPG_TTY=(tty)

View File

@@ -0,0 +1,2 @@
# export FZF_DEFAULT_COMMAND="fd --type f --hidden --exclude .git"
export FZF_DEFAULT_COMMAND="fd --type f"

View File

@@ -0,0 +1 @@
export EDITOR=nvim

View 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