xmonad 安装说明

发布于 2024-10-07 01:43:43 字数 572 浏览 2 评论 0原文

我正在尝试在我的计算机上安装 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风吹短裙飘 2024-10-14 01:43:43

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

source ~/.profile
exec $USERWM

干杯

It is later executed in ~/.xinitrc:

source ~/.profile
exec $USERWM

Cheers

眉黛浅 2024-10-14 01:43:43

此外,该行

export USERWM=`which xmonad`

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

请注意,这意味着

export USERWM='which xmonad'

不起作用,因为 shell 不会使用常规刻度线运行命令。

Also, the line

export USERWM=`which xmonad`

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

export USERWM='which xmonad'

will not work, since the shell wouldn't run the command with the regular tick marks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文