fix some formatting in my fishfuncs

hashbang
Ben Harris 2018-11-28 11:32:25 -05:00
parent f5bb310554
commit 3c8cac9765
12 changed files with 36 additions and 31 deletions

View File

@ -1,4 +0,0 @@
function 0x0
curl -F"file=@"$argv[1] https://0x0.tilde.team
end

View File

@ -1,7 +1,8 @@
function cat function cat
if type -q bat >/dev/null if type -q bat >/dev/null
bat $argv bat $argv
else else
command cat $argv command cat $argv
end end
end end

View File

@ -1,4 +1,4 @@
# Defined in /tmp/fish.IQuG4C/e.fish @ line 1
function e function e
exa -al --git --group-directories-first $argv exa -al --git --group-directories-first $argv
end end

View File

@ -3,3 +3,4 @@ function fish_greeting
/bin/cat /var/run/motd /bin/cat /var/run/motd
end end
end end

View File

@ -11,7 +11,6 @@ function fish_right_prompt
else else
echo -n '=' echo -n '='
end end
echo -n ' '
echo -n (git_branch) echo -n (git_branch)
set_color normal set_color normal

View File

@ -1,5 +1,6 @@
function git_branch function git_branch
if is_git if is_git
echo (git rev-parse --abbrev-ref HEAD ^/dev/null) echo (git rev-parse --abbrev-ref HEAD ^/dev/null)
end end
end end

View File

@ -4,9 +4,10 @@ function is_git_dirty
is_git; or return 1 is_git; or return 1
if git diff-files --quiet --ignore-submodules if git diff-files --quiet --ignore-submodules
or git diff-index --cached --quiet --ignore-submodules HEAD -- and git diff-index --cached --quiet --ignore-submodules HEAD --
return 1 return 1
else else
# we're dirty
return 0 return 0
end end
end end

View File

@ -2,3 +2,4 @@
function l function l
ls -lah --group-directories-first $argv ls -lah --group-directories-first $argv
end end

View File

@ -1,4 +1,7 @@
function longtlds function longtlds
wget -qO - http://data.iana.org/TLD/tlds-alpha-by-domain.txt | tail -n+2 | awk '{print length, $0;}' | sort -n $argv wget -qO - http://data.iana.org/TLD/tlds-alpha-by-domain.txt \
| tail -n+2 \
| awk '{print length, $0;}' \
| sort -n $argv
end end

View File

@ -1,3 +1,4 @@
function sysu function sysu
systemctl --user $argv systemctl --user $argv
end end

View File

@ -4,3 +4,4 @@ function vz
vim $file vim $file
end end
end end