[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

@@ -1,17 +1,10 @@
function man
set oldIFS "$IFS"
set IFS ""
set page (/usr/bin/man $argv | col -b)
if ! [ -z "$page" ]
echo "$page" | nvim -R -c 'set ft=man nomod nolist' -
end
set IFS "$oldIFS"
if status is-interactive
# Commands to run in interactive sessions can go here
end
export BROWSER="open"
export DYLD_FALLBACK_LIBRARY_PATH="/Library/Developer/CommandLineTools/usr/lib"
# export DYLD_FALLBACK_LIBRARY_PATH="/Library/Developer/CommandLineTools/usr/lib"
# export FZF_DEFAULT_COMMAND="fd --type f --hidden --exclude .git"
export CARGO_TARGET_DIR="$HOME/.local/share/cargo-target"
function __fish_command_not_found_handler --on-event fish_command_not_found
echo "fish: Unknown command '$argv'"
end
thefuck --alias | source