forked from nico/dots
fish: init
This commit is contained in:
parent
eda1f4129c
commit
69ceb5dcc5
14 changed files with 171 additions and 1 deletions
9
stow/.config/fish/functions/0x0.fish
Normal file
9
stow/.config/fish/functions/0x0.fish
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
function 0x0 --description 'Uploads a file or folder to 0x0.st'
|
||||
if test -d "$argv"
|
||||
set TMPFILE "$(mktemp --suffix '.tar')"
|
||||
tar cf "$TMPFILE" "$argv"
|
||||
curl -F file="@$TMPFILE" -F expires=24 https://0x0.st
|
||||
else
|
||||
curl -F file=@"$argv" -F expires=24 https://0x0.st
|
||||
end
|
||||
end
|
||||
4
stow/.config/fish/functions/cat.fish
Normal file
4
stow/.config/fish/functions/cat.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function cat --wraps=bat --description 'alias cat bat'
|
||||
bat $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/la.fish
Normal file
4
stow/.config/fish/functions/la.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function la --wraps='ls -ah --color=auto' --description 'alias la=ls -ah --color=auto'
|
||||
ls -ah --color=auto $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/ll.fish
Normal file
4
stow/.config/fish/functions/ll.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function ll --wraps='ls -l' --wraps='ls -ahl --color=auto' --description 'alias ll=ls -ahl --color=auto'
|
||||
ls -ahl --color=auto $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/ls.fish
Normal file
4
stow/.config/fish/functions/ls.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function ls --description 'alias ls=ls -h --color=auto'
|
||||
command ls -h --color=auto $argv
|
||||
|
||||
end
|
||||
6
stow/.config/fish/functions/posix-source.fish
Normal file
6
stow/.config/fish/functions/posix-source.fish
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
function posix-source
|
||||
for i in (cat $argv)
|
||||
set arr (echo $i |tr = \n)
|
||||
set -gx $arr[1] $arr[2]
|
||||
end
|
||||
end
|
||||
4
stow/.config/fish/functions/rm.fish
Normal file
4
stow/.config/fish/functions/rm.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function rm --wraps=trash --description 'alias rm trash'
|
||||
trash $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/v.fish
Normal file
4
stow/.config/fish/functions/v.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function v --wraps=nvim --description 'alias v nvim'
|
||||
nvim $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/vi.fish
Normal file
4
stow/.config/fish/functions/vi.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function vi --wraps=nvim --description 'alias vi nvim'
|
||||
nvim $argv
|
||||
|
||||
end
|
||||
4
stow/.config/fish/functions/vim.fish
Normal file
4
stow/.config/fish/functions/vim.fish
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
function vim --wraps=nvim --description 'alias vim nvim'
|
||||
nvim $argv
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue