mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
fish: setup colors; update aliases
This commit is contained in:
parent
2b86db67c3
commit
02b4623c31
3 changed files with 41 additions and 8 deletions
|
|
@ -1,8 +1,10 @@
|
|||
function sortw -d "Wrapper around sort to save file after sorting"
|
||||
function sortw -d "Wrapper around sort that saves file after sorting"
|
||||
if test (count $argv) -eq 0
|
||||
echo "No file provided"
|
||||
return 1
|
||||
else
|
||||
sort
|
||||
else if test (count $argv) -eq 1
|
||||
command sort $argv[1] -o $argv[1]
|
||||
else
|
||||
echo "I don't know what to do, too many arguments"
|
||||
return 2
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue