xmonad 安装说明
我正在尝试在我的计算机上安装 xmonad,此时我已按照说明进行操作 (http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_on_Apple_OSX#Installing_xmonad)
2.2 Configuring Your .profile
Insert the following into your ~/.profile
export PATH=$PATH:~/.cabal/bin:/usr/local/bin
export USERWM=`which xmonad`
Much of this isn't needed until later, but it's good to get it out the way now.
2.2.1 Installing Cabal
我了解 export PATH=$PATH:~/.cabal/bin:/usr/local/bin 发生了什么
但有人可以解释一下 1. USERWM 全局变量是什么以及到底要分配给它什么? (我假设“which xmonad”不是字面意思)。是xmonad的版本号吗?还有别的事吗?
I'm attempting to install xmonad on my machine and I'm at this point in the instructions
(http://www.haskell.org/haskellwiki/Xmonad/Using_xmonad_on_Apple_OSX#Installing_xmonad)
2.2 Configuring Your .profile
Insert the following into your ~/.profile
export PATH=$PATH:~/.cabal/bin:/usr/local/bin
export USERWM=`which xmonad`
Much of this isn't needed until later, but it's good to get it out the way now.
2.2.1 Installing Cabal
I understand what's going on with export PATH=$PATH:~/.cabal/bin:/usr/local/bin
but could someone please explain 1. what the USERWM global variable is and what exactly is meant to be assigned to it? (I'm assuming 'which xmonad' isn't meant literally). Is it a version number of xmonad? Something else?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它稍后在 ~/.xinitrc 中执行:
干杯
It is later executed in ~/.xinitrc:
Cheers
此外,该行
按原样是正确的。 shell 会将反引号(大多数键盘顶部的“1”旁边)中的内容视为要执行的命令。
which
命令将通过搜索 PATH 变量来给出 xmonad 的路径。请注意,这意味着
不起作用,因为 shell 不会使用常规刻度线运行命令。
Also, the line
is correct as is. The shell will treat things in backticks (next to the '1' on top of most keyboards) as a command to be executed. The
which
command will give the path to xmonad by searching through the PATH variable.Note that this means
will not work, since the shell wouldn't run the command with the regular tick marks.