Skip to content
ํ”„๋กœ์ ํŠธ

์†Œ๊ฐœ

๐Ÿก Fish์šฉ ํ…์ŠคํŠธ ํ™•์žฅ

๊ฐœ๋ฐœ ๋„๊ตฌ

์ด ์ˆ˜์น˜๋ฅผ ์ธก์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•

์ธก์ •๋œ ์Šคํƒ€ ์ฆ๊ฐ€

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
๊ธฐ๋ก ์ˆ˜์ง‘ ์ค‘

์„œ๋กœ ๊ฒน์น˜๋Š” ๊ธฐ๊ฐ„์˜ ์ˆœ์ฆ๊ฐ€๋Ÿ‰์ด๋ฉฐ ์ผ๋ณ„ ํ•ฉ๊ณ„๊ฐ€ ์•„๋‹™๋‹ˆ๋‹ค. ์ธก์ •๊ฐ’์ด ์—†์œผ๋ฉด ๋น„์›Œ ๋‘ก๋‹ˆ๋‹ค. ์Šคํƒ€๋Š” ๊ด€์‹ฌ๋„๋ฅผ ๋‚˜ํƒ€๋‚ด๋ฉฐ ํ’ˆ์งˆ์„ ๋ณด์žฅํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

README.md

Original

Puffer Fish

Text Expansions for Fish

Typing consecutive dots after .. will automatically expand to ../.., then ../../.. and so on. It expands in place as you type to allow directory tab-completion to work. This can be useful with any command where you want to reference a parent directory that is more than one back. i.e. cd .... or vi .../Cargo.toml.

dot dot demo

It's a little hard to see in the demo because it expands as you type, but cp ..../template/Makefile . is being typed.


Typing !! will expand to the previous command, similar to Zsh, Bash, and other shells. For example, if you type apt update you will likely see a permission error. You can then type sudo !! and it will expand to sudo apt update.

exclamation demo

This can be especially useful if you don't want to retype a long command, or navigate around with the arrow keys. Or if you want to re-run a command as part of pipeline.

some-long-command -abcdef --long-option --another-long-option /a/long/path/to/somewhere

cat file1 file2 | !! | grep 'search-key' | wrap -s

Typing !$ will expand to the last argument. For example, if you searched packages with pacman and found nothing, you'd like to also search in the AUR.

pacman -Ss something

paru -Ss !$

Typing !* will expand to all arguments. For example, if you created some directories and then wanted to run chmod on them.

mkdir /tmp/a /tmp/b /tmp/c

chmod 700 !*

Installation

Install with Fisher:

fisher install nickeb96/puffer-fish

Manually:

Copy functions/* and conf.d/* to your $__fish_config_dir directory. Make sure to create them if they don't already exist.

LICENSE

MIT

๊ด€๋ จ ํ”„๋กœ์ ํŠธ ์‚ดํŽด๋ณด๊ธฐ

๋ถˆ๋Ÿฌ์˜ค๋Š” ์ค‘โ€ฆ