zsh: relpath
This commit is contained in:
parent
6087121853
commit
6ed0717490
1 changed files with 4 additions and 0 deletions
|
|
@ -76,3 +76,7 @@ mov2gif() {
|
|||
ffmpeg -i "${infile}" -vf scale=800:-1 -r 10 -f image2pipe -vcodec ppm - | convert -delay 5 -layers Optimize -loop 0 - "${outfile}"
|
||||
echo "${outfile}"
|
||||
}
|
||||
|
||||
relpath() {
|
||||
realpath --relative-to=. "$1"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue