fish: add fisher package manager
This commit is contained in:
parent
89689156e2
commit
0690f1d48b
2
fish/.gitignore
vendored
Normal file
2
fish/.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
fisher/
|
||||||
|
fisher.fish
|
@ -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
2
fish/fishfile
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
jorgebucaran/fish-bax
|
||||||
|
jorgebucaran/fish-nvm
|
3
fish/functions/fishcognito.fish
Normal file
3
fish/functions/fishcognito.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function fishcognito --description "Start a new shell that won't save command history"
|
||||||
|
env fish_history='' fish
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user