Fish, bash commands as functions

edit start .bashrc

~/.config/fish/config.fish

functions

p/crossword> function nrh
                               npm run hot
                       end
p/crossword> funcsave nrh
p/crossword> nrh
make Atom.app run from terminal:
ln -s /Applications/Atom.app/Contents/Resources/app/atom.sh /usr/local/bin/atom
make function in Fish:
nano ~/.config/fish/functions/atom.fish
some functions:
function atom
    bash -c 'atom .'
end
function pstorm
    bash -c 'open -a /Applications/PhpStorm.app .'
end

function xcodeclean
        command rm -rf ~/Library/Developer/Xcode/DerivedData/*
end

function ll
    ls -lahG $argv
end

function rmpoddata
    pod deintegrate
    rm -rf Pods
    rm -rf Podfile.lock
    pod install
end

function rmderiveddata
    sudo rm -rf ~/Library/Developer/Xcode/DerivedData/*
end

Tags: