LINUXOPOLIS # 06-FEBRUARY-2020 ~ FISH-FUNCTIONS


FISH-FUNCTIONS

Building a Linux Habitat
willi glenz @ telegram
Published with SteemPeak
home ~ previous
ScreenshotScreenshot by Willi Glenz
$ vim ~/.config/fish/functions/gfish-functions.fish

function gfish-functions --description 'fish-functions'
    clear; echo
    echo '=========================================================================='
    echo '                              FISH-FUNCTIONS                              '
    echo '=========================================================================='
    echo ' <bash>$ fish                                                             '
    echo ' <fish>$ cd ~/.config/fish/functions                                      '
    echo '--------------------------------------------------------------------------'
    echo '                                                                          '
    echo ' function freeup -d "clean swap-space"                                    '
    echo '     clear                                                                '
    echo '     echo; free -h                                                        '
    echo '     sudo sync                                                            '
    echo '     sudo swapoff -a                                                      '
    echo '     sudo swapon -a                                                       '
    echo '     echo; free -h                                                        '
    echo ' end                                                                      '
    echo '                                                                          '
    echo ' function c -d "Neofetch & Cowsay"                                        '
    echo '    clear                                                                 '
    echo '    echo                                                                  '
    echo '    neofetch                                                              '
    echo '    cowsay -W 131 -f moose (cat ~/bin/oneliner.txt | shuf -n1)            '
    echo '    echo                                                                  '
    echo ' end                                                                      '
    echo '                                                                          '
    echo ' function s -d "steem price"                                              '
    echo '    if $argv = "";                                                        '
    echo '       set argv 3;                                                        '
    echo '    end                                                                   '
    echo '    set STEEM rate.sx/steem@{$argv}d                                      '
    echo '    clear                                                                 '
    echo '    curl $STEEM                                                           '
    echo ' end                                                                      '
    echo '                                                                          '
    echo '=========================================================================='
    echo
end
SOURCES
 fish - functions ................................................ ~> help functions
 picture ...................................... screenshoot by me ~ my gnome-desktop

Comments 0