-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
anki-code
committed
Mar 26, 2020
1 parent
6099ae1
commit 8dacafd
Showing
3 changed files
with
37 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
echo "xxh-plugin-fish-sample is here!" |