Better user experience for `npm i fisherman` users.

This commit is contained in:
Jorge Bucaran 2016-04-24 00:59:06 +09:00
parent f6fb86cba3
commit 006673ee73
No known key found for this signature in database
GPG key ID: E54BA3C0E646DB30
2 changed files with 4 additions and 7 deletions

2
fisher.fish Executable file → Normal file
View 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

View file

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