欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
Install Fish Shell on Mac OS X and Ubuntu | Hacker Codex

The Fish shell goes where few command-line shells have gone before, shedding its forebearers’ POSIX baggage in favor of simplicity, consistency, and ease-of-use. Much like the Mac creators thought computers should be made to understand how humans work (and not the other way around), Fish observes your past behavior and suggests commands that it thinks you might be trying to execute. Sometimes, those suggestions are so spot-on that it can be downright spooky. Reactions of “How did Fish know that’s what I wanted to do?” are not uncommon.

In this article, we’re going to show how to install the Fish shell on Mac OS X and Ubuntu, followed by some basic setup steps. Subsequent posts will cover more advanced configuration.

So can a command-line shell be Mac-like? Let’s find out.

What is Fish and why would someone use it instead of another shell?

Fish has a number of advantages over other shells:

  • Fish suggests commands as you type based on history and completions, just like a web browser’s search bar
  • Fish generates completions automatically by parsing your installed man pages
  • Fish has a more intuitive syntax
  • Fish has less historical baggage and technical debt

For additional background information, read:

Get insanely fast SSD-backed VPS hosting from Linode

Installing Fish on Mac OS X 10.10 Yosemite

There are several ways to install Fish on Mac OS X:

  • traditional .pkg installer
  • standalone Mac application
  • Homebrew
  • manual compilation

The first two options are available from the Fish web site and are straightforward enough to be considered self-explanatory.

That said, if you already use Homebrew (which I recommend) and have configured your environment as noted in the Mac OS X Setup Guide, then you can install Fish as you would any other package:

brew install fish

Add Fish to /etc/shells, which will require an administrative password:

echo "/usr/local/bin/fish" | sudo tee -a /etc/shells

Make Fish your default shell:

chsh -s /usr/local/bin/fish

Now that Fish is installed, you can proceed to the Basic Configuration section below.

Install latest Fish on Mac OS X from source

If you want to use the latest bleeding-edge version of Fish and already have Xcode installed, use the following steps to install from source:

git clone https://github.com/fish-shell/fish-shell ~/src/fishcd ~/src/fishxcodebuild installditto /tmp/fish.dst /

Add Fish to /etc/shells, which will require an administrative password:

echo "/usr/local/bin/fish" | sudo tee -a /etc/shells

Make Fish your default shell:

chsh -s /usr/local/bin/fish

Now that Fish is installed, you can proceed to the Basic Configuration section below.

Installing Fish on Ubuntu

On Ubuntu, the easiest way to keep up-to-date is via the offical PPA. If you prefer to install via .deb package, or if you want to install the bleeding-edge version of Fish from source, those instructions are further below.

Install Fish via PPA

The following steps will add the Fish 2.x PPA repository and install Fish:

sudo apt-add-repository ppa:fish-shell/release-2sudo apt-get updatesudo apt-get install fish

Make Fish your default shell:

chsh -s /usr/bin/fish

Now that Fish is installed, you can proceed to the Basic Configuration section below.

Install Fish on Ubuntu via .deb

The following steps are for the 64-bit version of Ubuntu 12.04 LTS. If you are using a different version of Ubuntu, you’ll need to retrieve an appropriate .deb package from the Fish on Linux page.

First retrieve and then install the .deb package:

wget http://fishshell.com/files/2.1.0/linux/Ubuntu/fish_2.1.0-1~precise_amd64.debsudo dpkg -i fish_2.1.0-1~precise_amd64.deb

Make Fish your default shell:

chsh -s /usr/bin/fish

Now that Fish is installed, you can proceed to the Basic Configuration section below.

Install bleeding-edge Fish via PPA

If you prefer, you can keep up-to-date with the bleeding-edge version of Fish via the nightly build PPA. To do so, add the nightly PPA and install Fish:

sudo add-apt-repository ppa:fish-shell/nightly-mastersudo apt-get updatesudo apt-get install fish

Make Fish your default shell:

chsh -s /usr/bin/fish

Now that Fish is installed, you can proceed to the Basic Configuration section below.

Install Fish on Ubuntu from source

Install dependencies:

sudo aptitude install build-essential git autoconf libncurses5-dev libncursesw5-dev gettext

Retrieve source, compile, and install:

mkdir -p ~/srcgit clone https://github.com/fish-shell/fish-shell ~/src/fishcd ~/src/fishautoconf./configure --without-xselmakesudo make install

Add Fish to /etc/shells:

echo "/usr/local/bin/fish" | sudo tee -a /etc/shells

Make Fish your default shell:

chsh -s /usr/local/bin/fish

Now that Fish is installed, it’s time for some basic configuration.

Basic configuration

The Fish shell should now be installed, but a bit more configuration will prove helpful later.

Create the Fish config directory:

mkdir -p ~/.config/fish

Create initial config file:

vim ~/.config/fish/config.fish

Initial config file contents, which adds /usr/local/bin to the PATH environment variable:

set -g -x PATH /usr/local/bin $PATH

Open a new terminal session, which should now load the Fish shell by default for the first time. You can enter help, followed by the return key, to load user documentation in your default browser.

You can also see your current configuration in your default browser by first entering this command:

fish_config

… and then visiting http://localhost:8000/ in your browser of choice.

Fish can parse your installed man pages and automatically generate completion files for your command-line tools. You should periodically run the following command to update those completions, which are stored in ~/.config/fish/completions by default:

fish_update_completions

Last but not least, running:

echo "set -g -x fish_greeting ''" >> ~/.config/fish/config.fish

… will eliminate the Fish welcome message that appears by default. If you want to add your own custom welcome message instead of removing the message entirely, insert your preferred text inside the '' marks.

Getting back to Bash

If you want to temporarily switch to the Bash shell for a single session, run:

bash

When you are done with your Bash session, type exit to return to your Fish shell.

If you decide Fish isn’t for you and want to permanently revert your default shell back to Bash:

chsh -s /bin/bash

… will switch your default shell to Bash.

Taking it to the next level

With Fish as your default shell, you may find that customizations you’ve made to your Bash environment are not present in Fish. The good news is that it’s easy to re-create those customizations — and create new enhancements — via Fish functions. Even better, check out Tacklebox and Tackle, which allow you to easily use community-curated modules, plugins, and themes so you don’t have to create them yourself.

I look forward to continuing the conversation on Twitter.

Get insanely fast SSD-backed VPS hosting from Linode


Follow me on Twitter to be notified when new articles are posted. You can also follow me on GitHub.

本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
Installing OpenCV 2.1 in Ubuntu – Sebastian M...
libtsmux INSTALL文件閱讀---關(guān)于編譯和安裝的說(shuō)明
CompilationGuide/MinGW – FFmpeg
如何高效回退到特定層級目錄?
ONOS源碼安裝及部署 | SDNLAB | 專(zhuān)注網(wǎng)絡(luò )創(chuàng )新技術(shù)
Ubuntu下構建內核源碼樹(shù)
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久