fish: add fisher package manager

This commit is contained in:
Charles Gould 2019-11-27 23:43:16 -05:00
parent 89689156e2
commit 0690f1d48b
4 changed files with 23 additions and 0 deletions

2
fish/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
fisher/
fisher.fish

View File

@ -34,3 +34,19 @@ alias java11="set -gx JAVA_HOME $JAVA_HOME_11"
alias md5sum="md5 -r $argv" alias md5sum="md5 -r $argv"
alias sha256sum="shasum -a 256 $argv" alias sha256sum="shasum -a 256 $argv"
alias vi='nvim' alias vi='nvim'
# Install package manager if needed
if not functions -q fisher
curl https://git.io/fisher --create-dirs -sLo ~/.config/fish/functions/fisher.fish
fish -c fisher
end
# Set package installation folder
set -g fisher_path ~/.config/fish/fisher
# Add packages to fish config
set fish_function_path $fish_function_path[1] $fisher_path/functions $fish_function_path[2..-1]
set fish_complete_path $fish_complete_path[1] $fisher_path/completions $fish_complete_path[2..-1]
for file in $fisher_path/conf.d/*.fish
builtin source $file 2> /dev/null
end

2
fish/fishfile Normal file
View File

@ -0,0 +1,2 @@
jorgebucaran/fish-bax
jorgebucaran/fish-nvm

View File

@ -0,0 +1,3 @@
function fishcognito --description "Start a new shell that won't save command history"
env fish_history='' fish
end