Bring zsh and fish back in sync
This commit is contained in:
parent
84a7f938fb
commit
fe8461f4b8
9 changed files with 81 additions and 46 deletions
13
fish/functions/uart.fish
Normal file
13
fish/functions/uart.fish
Normal file
|
@ -0,0 +1,13 @@
|
|||
switch (uname -s)
|
||||
case Linux
|
||||
function uart
|
||||
if not set -q argv[1]
|
||||
set argv[1] 115200
|
||||
end
|
||||
if not set -q argv[2]
|
||||
set argv[2] 0
|
||||
end
|
||||
screen /dev/ttyUSB"$argv[2]" "$argv[1]"
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue