Skip to content

Commit 9ddc7a5

Browse files
committed
Add helper files.
1 parent a61deaf commit 9ddc7a5

File tree

4 files changed

+52
-0
lines changed

4 files changed

+52
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/build

README.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
## 截图
2+
3+
`Ctrl+j/k` 在匹配候选列表中进行选择。按下`Enter`之后在浏览器中打开对应命令的链接,并复制命令名字到剪切板。
4+
5+
![Imgur](https://i.imgur.com/SWBUmkt.png)
6+
7+
## 准备
8+
9+
下载`linux-command`的配置文件到主目录,[提升命令查询速度](https://github.com/jaywcjlove/linux-command/issues/73)
10+
11+
```
12+
wget https://raw.githubusercontent.com/jaywcjlove/linux-command/master/dist/data.json ~/.data.json
13+
```
14+
15+
## 安装
16+
17+
```
18+
git clone https://github.com/roachsinai/krunner-linuxcommands.git && cd krunner-linuxcommands
19+
mkdir build && cd build
20+
cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DQT_PLUGIN_INSTALL_DIR=`kf5-config --qt-plugins`
21+
make
22+
sudo make install
23+
kquitapp krunner
24+
krunner
25+
```
26+
27+
#### 脚本
28+
29+
也可以直接运行下面的脚本进行安装与卸载。
30+
31+
+ [安装](./install.sh)
32+
+ [卸载](./uninstall.sh)
33+
34+
## ToDo
35+
36+
+ 添加配置制定`linux-command`的配置文件存放位置

install.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
mkdir build
4+
cd build
5+
cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` -DQT_PLUGIN_INSTALL_DIR=`kf5-config --qt-plugins`
6+
make
7+
sudo make install
8+
#kquitapp krunner
9+
#krunner

uninstall.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
cd build
4+
sudo make uninstall
5+
cd ..
6+
sudo rm -r build

0 commit comments

Comments
 (0)