Faster zshrc
This commit is contained in:
9
zsh/bin/swap
Executable file
9
zsh/bin/swap
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# Swap files
|
||||
swap() {
|
||||
local tmp=`mktemp`
|
||||
mv "$1" "$tmp"
|
||||
mv "$2" "$1"
|
||||
mv "$tmp" "$2"
|
||||
}
|
||||
Reference in New Issue
Block a user