Last active
January 26, 2018 03:27
-
-
Save onokatio/4642f8ab172db5dcfd6b930fb4c47f8e to your computer and use it in GitHub Desktop.
コマンドを間違えるたびに美少女に罵られたい! ref: https://qiita.com/onokatio/items/4930e4b23339edd05d47
This file contains hidden or 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
| function command_not_found_handle(){ | |
| if [ -e /usr/bin/jp2a ];then | |
| if [ -e ~/kirino.jpg ];then | |
| jp2a ~/kirino.jpg -i | |
| fi | |
| fi | |
| echo "ハァ…?$1とか何言ってんの?\nコマンドもろくに覚えられないなんて、アンタどうしようもないクズね。" | |
| } |
This file contains hidden or 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
| $ sudo apt install jp2a # for Debian,Ubuntu | |
| $ brew install jp2a # for MacOSX,Linuxbrew |
This file contains hidden or 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
| function command_not_found_handler --on-event fish_command_not_found | |
| if type -q jp2a; and test -e ~/kirino.jpg | |
| jp2a ~/kirino.jpg -i | |
| end | |
| echo ハァ…?$argv[1]とか何言ってんの? | |
| echo コマンドもろくに覚えられないなんて、アンタどうしようもないクズね。 | |
| end |
This file contains hidden or 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
| function command_not_found_handler --on-event fish_command_not_found | |
| if type -q jp2a; and test -e ~/kirino.jpg | |
| jp2a ~/kirino.jpg -i | |
| end | |
| echo ハァ…?$argv[1]とか何言ってんの? | |
| echo コマンドもろくに覚えられないなんて、アンタどうしようもないクズね。 | |
| end |
This file contains hidden or 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
| $ jp2a hoge.jpg --width=100 # 横幅を100列固定で表示 | |
| $ jp2a hoge.jpg --height=100 # 横幅を100列固定で表示 | |
| $ jp2a hoge.jpg -i # 白黒反転で表示 |
This file contains hidden or 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
| $ imgcat hoge.jpg |
This file contains hidden or 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
| $ img2sixel hoge.jpg | |
| $ img2sixel hoge.gif -l disable # -l disableを付けないとアニメがループしてプロンプトが帰ってこない |
This file contains hidden or 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
| function command_not_found_handler(){ | |
| if [ -e /usr/bin/jp2a ];then | |
| if [ -e ~/kirino.jpg ];then | |
| jp2a ~/kirino.jpg -i | |
| fi | |
| fi | |
| echo "ハァ…?$1とか何言ってんの?\nコマンドもろくに覚えられないなんて、アンタどうしようもないクズね。" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment