I am using nautilus file manager and created the file
~/.bash_aliases with the line
alias naut="nautilus $(pwd) >/dev/null 2>&1 & disown;"
Then I execute
Then when I type the command
naut, the file manager does not open in the
pwd directory but in the directory in which I last executed
source ~/.bashrc . Which is weird, because when I create an alias
alias naut="pwd; nautilus $(pwd) > /dev/null 2>&1 & disown;"
naut always returns my actual working directory, while opening nautilus in another directory.
How is this possible?