← スキル一覧に戻る

add-fish-alias
by avegancafe
a dev setup
⭐ 5🍴 0📅 2026年1月21日
SKILL.md
name: add-fish-alias description: Use when creating a new fish shell alias, function, or command shortcut, or when user asks to "add an alias for X"
Add Fish Alias
Create a new fish shell function/alias in Juliet dotfiles.
Process
-
Create function file
symlinked/config/fish/functions/aliases/<name>.fish -
Write the function
function <name> --wraps "<wrapped-command>" <wrapped-command> $argv end -
Reload fish (or open new terminal)
source ~/.config/fish/config.fish
File Naming
- Filename = function name (e.g.,
g.fishdefinesgfunction) - Use lowercase, hyphens for multi-word names
- Files are auto-loaded alphabetically
Patterns
Simple Wrapper
function g --wraps "git"
git $argv
end
Wrapper with Auto-Install
function nv --wraps "neovide"
if ! command -v neovide 2&> /dev/null
gum confirm "Neovide not installed. Install?" && brew install --cask neovide
end
neovide $argv
end
Function with Subcommand Aliases
function pv --wraps "pipenv"
switch $argv[1]
case "i"
set argv[1] install
end
pipenv $argv
end
Interactive Function (using gum)
function clone
set -l provider (gum choose --header "Source?" github gitlab)
# ... rest of logic
end
Multiple Functions in One File
Group related functions (e.g., git.fish contains ga, gl, gm, commit, etc.)
Conventions
- Use
--wrapsfor tab completion inheritance - Use
$argvto pass all arguments - Use
gumfor interactive prompts (confirm, choose, input, spin) - Helper functions:
log,error,debuglog(defined in fish config)
Common Mistakes
- Forgetting
--wraps(loses tab completion) - Using
$@instead of$argv(bash syntax, not fish) - Creating in wrong directory (must be in
symlinked/config/fish/functions/aliases/)
スコア
総合スコア
55/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
✓最近の活動
1ヶ月以内に更新
+10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
✓タグ
1つ以上のタグが設定されている
+5
レビュー
💬
レビュー機能は近日公開予定です

