Faster zshrc

This commit is contained in:
2019-02-11 17:40:33 +01:00
parent 23e40963ba
commit 740857f59b
8 changed files with 88 additions and 176 deletions

9
zsh/bin/swap Executable file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env zsh
# Swap files
swap() {
local tmp=`mktemp`
mv "$1" "$tmp"
mv "$2" "$1"
mv "$tmp" "$2"
}