10 lines
122 B
Plaintext
10 lines
122 B
Plaintext
|
#!/usr/bin/env zsh
|
||
|
|
||
|
# Swap files
|
||
|
swap() {
|
||
|
local tmp=`mktemp`
|
||
|
mv "$1" "$tmp"
|
||
|
mv "$2" "$1"
|
||
|
mv "$tmp" "$2"
|
||
|
}
|