mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Better user experience for `npm i fisherman
` users.
This commit is contained in:
parent
f6fb86cba3
commit
006673ee73
2 changed files with 4 additions and 7 deletions
2
fisher.fish
Executable file → Normal file
2
fisher.fish
Executable file → Normal file
|
@ -1,5 +1,5 @@
|
||||||
function fisher
|
function fisher
|
||||||
set -g fisher_version "2.1.1"
|
set -g fisher_version "2.1.3"
|
||||||
set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
|
set -g fisher_spinners ⠋ ⠙ ⠹ ⠸ ⠼ ⠴ ⠦ ⠧ ⠇ ⠏
|
||||||
|
|
||||||
function __fisher_show_spinner
|
function __fisher_show_spinner
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "fisherman",
|
"name": "fisherman",
|
||||||
"description": "fish plugin manager",
|
"description": "fish plugin manager",
|
||||||
"version": "2.1.1",
|
"version": "2.1.3",
|
||||||
"author": "Jorge Bucaran",
|
"author": "Jorge Bucaran",
|
||||||
"homepage": "https://github.com/fisherman/fisherman",
|
"homepage": "https://github.com/fisherman/fisherman",
|
||||||
"bugs": "https://github.com/fisherman/fisherman/issues",
|
"bugs": "https://github.com/fisherman/fisherman/issues",
|
||||||
|
@ -14,13 +14,10 @@
|
||||||
"fish-shell",
|
"fish-shell",
|
||||||
"package manager"
|
"package manager"
|
||||||
],
|
],
|
||||||
"bin": {
|
|
||||||
"fisher": "./fisher.fish"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"install": "awk 'BEGIN { print(\"#!/usr/bin/env fish\") } { print($0) } END { print(\"fisher $argv\") }' < fisher.fish > fisher.fish_; mv fisher.fish_ fisher.fish; chmod +x fisher.fish"
|
"postinstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; cp -f fisher.fish \"$i/fisher.fish\"; exec fish < /dev/tty",
|
||||||
|
"postuninstall": "i=\"$XDG_CONFIG_HOME\"; [ -z \"$i\" ] && i=~/.config; i=\"$i/fish/functions\"; rm -f \"$i/fisher.fish\"; exec fish < /dev/tty"
|
||||||
},
|
},
|
||||||
"preferGlobal": true,
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/fisherman/fisherman.git"
|
"url": "git+https://github.com/fisherman/fisherman.git"
|
||||||
|
|
Loading…
Reference in a new issue