~razzi/fish-functions

775f9b1265efcbe05f7736cdbdea0543e77a4f8e — Razzi Abuissa 2 months ago 96e0ddc
Remove some unused macos-specific functions
3 files changed, 0 insertions(+), 18 deletions(-)

D functions/mgist.fish
D functions/start-elastic.fish
D functions/start-jupyter.fish
D functions/mgist.fish => functions/mgist.fish +0 -11
@@ 1,11 0,0 @@
function mgist --argument file
    set gist_url (mdls -raw -n GistURL $file)
    if [ "$gist_url" = '(null)' ]
        set url (gist $file)
        xattr -w com.apple.metadata:GistURL $url $file
        echo $url
    else
        gist --update $gist_url $file
        echo $gist_url
    end
end

D functions/start-elastic.fish => functions/start-elastic.fish +0 -3
@@ 1,3 0,0 @@
function start-elastic
    docker run -d -p 9200:9200 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:6.3.2
end

D functions/start-jupyter.fish => functions/start-jupyter.fish +0 -4
@@ 1,4 0,0 @@
function start-jupyter
    launchctl start local.jupyter.notebook
    echo "rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8888" | sudo pfctl -ef - ^/dev/null
end