我正在尝试在我的机器上安装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全局变量是什么,分配给它的确切含义是什么?(我假设‘哪个xmonad’不是字面意思)。是xmonad的版本号吗?还有别的吗?
发布于 2010-12-11 04:12:29
它稍后在~/.xinitrc中执行
source ~/.profile
exec $USERWM干杯
发布于 2013-08-26 22:41:13
另外,这一行
export USERWM=`which xmonad`是正确的。shell会将反引号(在大多数键盘顶部的'1‘旁边)视为要执行的命令。which命令将通过搜索path变量提供xmonad的路径。
请注意,这意味着
export USERWM='which xmonad'将不起作用,因为shell不会运行带有常规刻度线的命令。
https://stackoverflow.com/questions/4412754
复制相似问题