我在 Ubuntu 19.04 中安装了 lsd。但是当我运行 lsd 命令时,它显示命令未找到

我在 Ubuntu 19.04 中安装了 lsd。但是当我运行 lsd 命令时,它显示命令未找到
Command 'lsd' is available in '/snap/bin/lsd'
The command could not be located because '/snap/bin' is not
 included in the PATH environment variable.
lsd: command not found

我怎么解决这个问题?

答案1

编辑 /home/yourname/.bashrc 并添加以下行:

export PATH="$PATH:/snap/bin/"

然后重新启动终端,您就能运行了lsd

相关内容