Clean up fish functions rarely used #fishshell

This commit is contained in:
Colin Powell
2019-02-28 10:36:02 -05:00
parent 6ec50d2d4d
commit b2f80cdcc8
8 changed files with 7 additions and 45 deletions

View File

@ -0,0 +1,5 @@
function dcedj
pushd ~/src/elation/hippo
docker-compose exec hippo django-admin $argv
popd
end

View File

@ -1,4 +1,4 @@
function dcet-dj
function dcetdj
pushd ~/src/elation/hippo-tethys
docker-compose exec hippo django-admin $argv
popd

View File

@ -1,5 +0,0 @@
function el8log
pushd ~/devel/elationemr/hippo/
docker-compose logs --tail=50 -f hippo
popd
end

View File

@ -1,5 +0,0 @@
function el8up
pushd ~/devel/elationemr/hippo
docker-compose up -d
popd
end

View File

@ -1,17 +0,0 @@
# Display the compressed current working path on the right
# If the previous command returned any kind of error code, display that too
function fish_right_prompt
set -l last_status $status
set -l cyan (set_color -o cyan)
set -l red (set_color -o red)
set -l normal (set_color normal)
echo -n -s $cyan (prompt_pwd)
if test $last_status -ne 0
set_color red
printf ' %d' $last_status
set_color normal
end
end

View File

@ -1,3 +0,0 @@
function getWanIp
dig +short myip.opendns.com @resolver1.opendns.com
end