1

我正在尝试在我的机器上安装 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的版本号吗?还有什么?

4

2 回答 2

1

它稍后在~/.xinitrc中执行:

source ~/.profile
exec $USERWM

干杯

于 2010-12-10T20:12:29.040 回答
0

另外,线

export USERWM=`which xmonad`

是正确的。shell 会将反引号中的内容(大多数键盘顶部的“1”旁边)视为要执行的命令。该which命令将通过搜索 PATH 变量来给出 xmonad 的路径。

请注意,这意味着

export USERWM='which xmonad'

将不起作用,因为 shell 不会运行带有常规刻度线的命令。

于 2013-08-26T14:41:12.540 回答