Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
anki-code committed Mar 26, 2020
1 parent 6099ae1 commit 8dacafd
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,16 @@
# xxh-plugin-fish-sample
Sample xxh plugin for fish shell
## Create your fish xxh plugin
1. Fork this repo
2. Edit the plugin files:
* `pluginrc.fish` - this script will be executed on the host when you connect to the host. Put here your functions, environment variables, aliases and whatever you need.
* `build.sh` - this script should be executed to prepare the plugin on local xxh. It will be executed automatically if `build` directory is not exists.
3. Replace this list to description of your xxh plugin (review other xxh plugins)
4. Push your commits and rename your repo to `xxh-plugin-fish-yourtitle`
5. Install the plugin to your xxh home:
```
xxh +I xxh-plugin-fish-yourtitle+git+https://github.com/yourname/xxh-plugin-fish-yourtitle
```
6. Try connect in update mode: `xxh [user@]host[:port] +s fish +if`

## Examples

🔎 [Search xxh plugins on Github](https://github.com/search?q=xxh-plugin-fish&type=Repositories) or [Bitbucket](https://bitbucket.org/repo/all?name=xxh-plugin-fish) or 💡 [Create xxh plugin](https://github.com/xxh/xxh-plugin-fish-sample)
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env bash

CDIR="$(cd "$(dirname "$0")" && pwd)"
build_dir=$CDIR/build

while getopts q option
do
case "${option}"
in
q) QUIET=1;;
esac
done

rm -rf $build_dir
mkdir -p $build_dir

for f in pluginrc.fish
do
cp $CDIR/$f $build_dir/
done
1 change: 1 addition & 0 deletions pluginrc.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "xxh-plugin-fish-sample is here!"

0 comments on commit 8dacafd

Please sign in to comment.