Closed stueja closed 3 months ago
The problem doesn't reproduce in my environment. I suspect sudo
in your environment is defined to be an alias ending with a space. What is the result of the following command?
$ type -a sudo
11:40:00 ***@***.*** Downloads → type -a sudo
sudo is aliased to `sudo '
sudo is /usr/bin/sudo
Ah, yes, you are right, I forgot about that. I did that to use the alias "vim" which is mapped to "/usr/bin/nvim" also when prefixed with "sudo" (https://askubuntu.com/a/22043).
11:41:40 jan@two-arch Downloads → sudo vim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1702233742
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
11:41:43 jan@two-arch Downloads →
11:41:43 jan@two-arch Downloads →
11:41:43 jan@two-arch Downloads → \sudo vim --version
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Mar 05 2024 22:43:21)
OMB doesn't define that alias of sudo
, so this is technically a conflict between OMB and the custom alias sudo
. I wouldn't change the current settings of OMB, but you can work around it.
general
plugin (by removing the entry general
from the array plugins
in ~/.bashrc
) because those aliases of mv
and cp
are defined by the general
plugin.mv
and cp
after sourcing "$OSH"/oh-my-bash.sh
in ~/.bashrc
. You can undefine them by putting unalias mv cp
in your ~/.bashrc
.I went for unaliasing cp and mv, works like a charm. Thank you very much for your quick replies and fix!
Great!
Trying to
mv
files likeresults in the above error even after upgrade:
Same for
cp
This is on Arch Linux, 6.7.9-arch1-1, with GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)