mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
fish: add some helper functions
This commit is contained in:
parent
668c451b55
commit
7bea68f38a
4 changed files with 16 additions and 1 deletions
8
config/fish/functions/sortw.fish
Normal file
8
config/fish/functions/sortw.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function sortw -d "Wrapper around sort to save file after sorting"
|
||||
if test (count $argv) -eq 0
|
||||
echo "No file provided"
|
||||
return 1
|
||||
else
|
||||
command sort $argv[1] -o $argv[1]
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue