zshrc: add swap-files
This commit is contained in:
parent
8b24c74eaa
commit
7dae736eea
1 changed files with 4 additions and 0 deletions
|
@ -109,6 +109,10 @@ http-dir() {
|
||||||
/usr/sbin/thttpd -D -d . -p 55555 -l -
|
/usr/sbin/thttpd -D -d . -p 55555 -l -
|
||||||
}
|
}
|
||||||
|
|
||||||
|
swap-files() {
|
||||||
|
TMP=.swap-files.tmp
|
||||||
|
mv "$1" "$TMP" && mv "$2" "$1" && mv "$TMP" "$2"
|
||||||
|
}
|
||||||
|
|
||||||
HISTFILE=~/.history # soubor pro ukládání do historie
|
HISTFILE=~/.history # soubor pro ukládání do historie
|
||||||
SAVEHIST=5000 # ukládá se 5000 příkazů
|
SAVEHIST=5000 # ukládá se 5000 příkazů
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue