cx: A directory history utility written in C

栏目: IT技术 · 发布时间: 4年前

内容简介:A directory history utility written in CThis program requires the SQLite3 development headers and library.

cx

A directory history utility written in C

Using cx

cxd -d
/usr/local/share/cx/

Installing

This program requires the SQLite3 development headers and library.

make && sudo make install should build and install the program to /usr/local by default. Defining the PREFIX environment variable will let you define where it's installed. Scripts for various shells are installed in ${PREFIX}/share/cx , which you should include for your respective shell to have convenient access to the cx command.

How it works

cxd

cxd is a daemon that runs in the background and receives messages from a UNIX socket at ~/.cx/socket by default. A simple text-based protocol is defined to send and receive messages.

flags

  • -d: daemonize
  • -D : define the database path
  • -s : define the socket path

cxc

cxc is the client, it basically figures out what you want to do from your arguments, and sends the message to cxd. It's used as a backend for the cx command, but it can also be used to manually change a directory's priority, lock or unlock priorities in place, remove entries and push new entries. You can also use it to dump the entire database's contents.

flags

  • Any string after the arguments (or after --) is jumped to if a match is found
  • -p : add an entry representing this path, if it exists
  • -s : specify the path of the socket to use to communicate with cxd
  • -d: Dump the database's contents
  • -i : specify the ID of the entry to modify using other flags (all flags below require this argument)
  • -S: set priority for the entry
  • -l: lock the entry
  • -u: unlock the entry
  • -t: toggle the lock on the entry
  • -r: remove the entry

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

思考,快与慢

思考,快与慢

[美] 丹尼尔·卡尼曼 / 胡晓姣、李爱民、何梦莹 / 中信出版社 / 2012-7 / 69.00元

《纽约时报》2011年度十大好书 新书上市,连续20多周蝉联亚马逊、《纽约时报》畅销书排行榜前20名,上市至今超过7个月,横扫全球各大畅销书排行榜,稳居亚马逊总榜前50名 《经济学人》、《华尔街日报》、《卫报》、《纽约时报》、《金融时报》、《商业周刊》、《华盛顿邮报》、等国外权威媒体,《三联生活周刊》、《商学院》、《东方早报》等国内知名媒体争相报道,国内外读者好评如潮 人类究竟有......一起来看看 《思考,快与慢》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

在线进制转换器
在线进制转换器

各进制数互转换器

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具