サイトからソースをダウンロードして展開します。
wget http://ridiculousfish.com/shell/files/fishfish.tar.gz tar xzf fishfish.tar.gz
必要な依存関係の検索は、いくつかの困難を引き起こしました;それらが記述された場所をすぐに見つけることができませんでした。 依存関係が正しくない可能性がありますが、そのような依存関係のすべてが私のために起こっています。
sudo apt-get install autoconf g++ libncurses5-dev libncursesw5-dev gettext
依存関係がインストールされたら、シェル自体のアセンブリに進みます。
autoconf ./configure --without-xsel
設定するとき、オプション--without-xselを指定します。 指定しない場合、アセンブリ中にスクリプトはX11のライブラリを見つけられません。 SeverreにX11をインストールする必要はありませんでした。 すべてがうまくいった場合、次のように表示されます。
fish is now configured. Use 'make' and 'make install' to build and install fish.
組み立てを開始します。
make
アセンブリが正常に完了すると、以下が表示されます。
fish has now been built. Use 'make install' to install fish.
組み立て後、魚を取り付けます。
sudo make install
すべてが順調であれば、以下が表示されます。
fish is now installed on your system. To run fish, type 'fish' in your terminal. To use fish as your login shell: * add the line '/usr/local/bin/fish' to the file '/etc/shells'. * use the command 'chsh -s /usr/local/bin/fish'. To set your colors, run 'fish_config' To scan your man pages for completions, run 'fish_update_completions' Have fun!
インストーラーが推奨するように、行/ usr / local / bin / fishを/ etc / shellsに追加します。
sudoedit /etc/shells
シェルとして魚を選択してください。
chsh -s /usr/local/bin/fish
インストールが完了した後、まだいくつかの問題がありました:コマンドとヒントの迷惑な点滅、およびマンパスによる完了の生成の破損。 チームのシェルがペイントする色の「余分な」設定を削除することで、点滅の問題を解決しました。 set fish_color_ *パラメータを使用して、好きなものを選択できます。
set fish_color_autosuggestion yellow set fish_color_command green set fish_color_param cyan
不完全な補完の生成に関する問題も、ひどいトリックを使用して解決されました。 ファイルを編集します。
sudoedit /usr/local/share/fish/tools/create_manpage_completions.py
行番号744に移動し、 ここで説明するように、この行を編集して、
proc = subprocess.Popen(['man', '--path'], stdout=subprocess.PIPE)
判明した
proc = subprocess.Popen(['manpath'], stdout=subprocess.PIPE)
次に、補完の生成を開始します
fish_update_completions
応答ですべてが正しく受信された場合、次のようになります
Parsing man pages and writing completions to /home/rp/.config/fish/completions/
出来上がり! 素晴らしいシェルをお楽しみください。