create account

How to tweak your console - fish & thefuck by feelfreelinux

View this thread on steemit.com
· @feelfreelinux ·
How to tweak your console - fish & thefuck
Almost every Linux user has used the shell at least once. From installing new packages, to pushing new commits into your git repository - it allows us to do tasks impossible from graphical interface. In this article I'll overview few tools that make this job even easier.
![](https://steemitimages.com/DQmZhcQ52mkSMPJ7jc4EUrUMmUYoCMG7W42N6oCWuuftahA/image.png)
# fish
`fish` is an powerful alternative to other shells like `bash` or `zsh`. Configuring `zsh` requires skill, or installing heavy frameworks on top of it, like `oh-my-zsh`. **In `fish`, most features work out-of-the-box**. You don't need to install any additional software. It allows you to use features like:
- Autosuggestions
- Tab autocomplete
- Coloring the shell
- Web configuration tool
- Configure your prompt (For example, show git repo name)

## Installation
`fish` should be available in your system's default package manager.
**For example, to install it in Ubuntu / Debian using `apt`:**
`sudo apt-get install fish`
**For Arch Linux**
`sudo pacman -S fish`

### Changing your default shell to `fish`
After installing any shell, you can use it by just launching it by command. However, if you want to make it start as default shell after restarting your terminal use this command:
`chsh -s /usr/bin/fish`
After logging again into your system, `fish` will be your default shell for this user.

## Configuration
Configuring `fish` is really easy! If you are running system with graphical interface, you can just type`fish_config ` to open configuration tool in your browser. You can change your theme, view your command history,  edit bindings - configure everything in your browser, without manually editing configuration files.
![](https://steemitimages.com/DQmcc65gVVCgU9KXgYD3SgoU3x11LpYvomyMZnchUGYWy6r/image.png)

# thefuck
Another handy tool is `fuck`. When you miswrite command, you can just write `fuck` and this tool will guess command you wanted to write.
![](https://steemitimages.com/DQmdvn8x4jFS8gqwWstFRmr6REXHztAP266r7ufdp5udGd8/image.png)

## Installation
To install [thefuck](https://github.com/nvbn/thefuck) you need to have both `python3` and `pip3` installed.
- Ubuntu
`sudo apt install python3-dev python3-pip`
`sudo pip3 install thefuck`
- Arch Linux
`sudo pacman -S python python-pip`
`sudo pip3 install thefuck`

Then, you need to put 
`eval (thefuck --alias | tr '\n' ';')`
in your `~/.config/fish/config.fish`

 Restart your shell, and viola - `thefuck` is installed.

These tools helped me a lot while working on my projects. You can install them on any Unix system - OSX, Linux, BSD and rest of the family.
Thanks for reading this far. I hope you liked this article.
👍  , , , , , ,
properties (23)
post_id10,786,737
authorfeelfreelinux
permlinkhow-to-tweak-your-console-fish-and-thefuck
categorylinux
json_metadata"{"app": "steemit/0.1", "format": "markdown", "links": ["https://github.com/nvbn/thefuck"], "image": ["https://steemitimages.com/DQmZhcQ52mkSMPJ7jc4EUrUMmUYoCMG7W42N6oCWuuftahA/image.png"], "tags": ["linux", "programming", "computers", "osx", "technology"]}"
created2017-08-22 17:19:57
last_update2017-08-22 17:19:57
depth0
children2
net_rshares229,486,696
last_payout2017-08-29 17:19:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length2,668
author_reputation827,518,626,017
root_title"How to tweak your console - fish & thefuck"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (7)
@steemitboard ·
Congratulations @feelfreelinux! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/firstcomment.png)](http://steemitboard.com/@feelfreelinux) You made your First Comment

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
post_id10,946,887
authorsteemitboard
permlinksteemitboard-notify-feelfreelinux-20170824t130632000z
categorylinux
json_metadata"{"image": ["https://steemitboard.com/img/notifications.png"]}"
created2017-08-24 13:06:30
last_update2017-08-24 13:06:30
depth1
children0
net_rshares0
last_payout2017-08-31 13:06:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length699
author_reputation27,053,422,946,409
root_title"How to tweak your console - fish & thefuck"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@steemitboard ·
Congratulations @feelfreelinux! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/votes.png)](http://steemitboard.com/@feelfreelinux) Award for the number of upvotes

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
properties (22)
post_id11,524,769
authorsteemitboard
permlinksteemitboard-notify-feelfreelinux-20170831t002254000z
categorylinux
json_metadata"{"image": ["https://steemitboard.com/img/notifications.png"]}"
created2017-08-31 00:22:54
last_update2017-08-31 00:22:54
depth1
children0
net_rshares0
last_payout2017-09-07 00:22:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length696
author_reputation27,053,422,946,409
root_title"How to tweak your console - fish & thefuck"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000