LINUXOPOLIS # 2019-10-30 ~ FISH

3개월 전

FISH

Published with SteemPeak
home ~ previous

ScreenshotScreenshot by Willi Glenz

SUMMARY

06 FISH ............................................................... v1 19-08

02 installation ....................................................... v1 19-07
01 configuration ...................................................... v2 19-10
05 documentation ...................................................... v1 19-07

04 tutorials .......................................................... v2 19-08

07 first steps ........................................................ v1 19-09
10 path ............................................................... v1 19-10 new
03 functions .......................................................... v3 19-09

09 sources ............................................................ v1 19-10

#10

10 PATH
$ vim ~/.config/fish/config.fish
.... set PATH /home/user1/Apps/ $PATH 

$ echo $PATH
$ count $PATH
$ echo $PATH[1]
$ echo $PATH[-1..2]

~> for val in $PATH
~>     echo "entry: $val"
~> end
fishshell.com/docs/current/tutorial.html#tut_path


09 SOURCES
documentation   : fishshell.com/docs/current/index.html
github          : github.com/fish-shell/fish-shell
commands        : fishshell.com/docs/current/commands.html
geowarin        : geowarin.com/the-missing-fish-shell-tutorial/


07 FIRST STEPS
~> help
fishshell.com/docs/current/tutorial.html


06 FISH
homepage        : fishshell.com
documentation   : fishshell.com/docs/current/index.html
faq             : fishshell.com/docs/current/faq.html
design          : fishshell.com/docs/current/design.html


05 DOCUMENTION
commands        : fishshell.com/docs/current/commands.html
design          : fishshell.com/docs/current/design.html
faq             : fishshell.com/docs/current/faq.html
fishshell       : fishshell.com/docs/current/tutorial.html
geowarin        : geowarin.com/the-missing-fish-shell-tutorial/


04 TUTORIALS
luke smith      : youtu.be/C2a7jJTh3kU
fishshell       : fishshell.com/docs/current/tutorial.html
geowarin        : geowarin.com/the-missing-fish-shell-tutorial/


03 FUNCTIONS
function freeup -d "clean swap-space"
    clear
    echo; free -h
    sudo sync
    sudo swapoff -a
    sudo swapon -a
    echo; free -h
end 

function c -d "Neofetch & Cowsay"
   clear
   echo
   neofetch
   cowsay -W 131 -f moose (cat ~/bin/oneliner.txt | shuf -n1)
   echo
end

function s -d "Steem Price"
   if $argv = "";
      set argv 3;
   end
   set STEEM rate.sx/steem@{$argv}d
   clear
   curl $STEEM 
end
$ fish
~> cd ~/.config/fish/functions
~> help functions


02 INSTALLATION
# apt install build-essential cmake ncurses-dev libncurses5-dev libpcre2-dev gettext
# apt install fish
$ man fish
~> fish_config
~> cd ~/.config/fish/functions
source github.com/fish-shell/fish-shell


01 CONFIGURATION
$ cat /etc/shells
$ chsh -s /usr/bin/fish

~> fish_config
~> vim ~/.config/fish/config.fish
~> fish_vi_key_bindings
-> fish_default_key_bindings

PATHS

~/.config/fish
~/.config/fish/functions
homepage        : fishshell.com
documentation   : fishshell.com/docs/current/index.html
github          : github.com/fish-shell/fish-shell
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending

This post had received 21.56% upvote from @steemitportugal account!
Our website has lots of news and tutorials you can visit right now at www.steemitportugal.com

Click here to vote
steemitportugal
Delegation for daily voting: 10SP-25SP-50SP-100SP-250SP-500SP-1000SP