mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-10-31 23:49:25 +01:00
{bash,zsh}rc: add quotes for
Fixes spaces in filenames
This commit is contained in:
parent
b3504a9fac
commit
f5c0e65c96
@ -824,12 +824,12 @@ ssh-verify-file() {
|
|||||||
if hash nvim 2>/dev/null; then
|
if hash nvim 2>/dev/null; then
|
||||||
vim() {
|
vim() {
|
||||||
echo 'using nvim instead'
|
echo 'using nvim instead'
|
||||||
nvim $@
|
nvim "$@"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
vim() {
|
vim() {
|
||||||
echo 'nvim not found'
|
echo 'nvim not found'
|
||||||
\vim $@
|
\vim "$@"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
4
rc/zshrc
4
rc/zshrc
@ -809,12 +809,12 @@ ssh-verify-file () {
|
|||||||
if hash nvim 2>/dev/null; then
|
if hash nvim 2>/dev/null; then
|
||||||
vim() {
|
vim() {
|
||||||
echo 'using nvim instead'
|
echo 'using nvim instead'
|
||||||
nvim $@
|
nvim "$@"
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
vim() {
|
vim() {
|
||||||
echo 'nvim not found'
|
echo 'nvim not found'
|
||||||
\vim $@
|
\vim "$@"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user