Linux / Unix desktop fun: gti get jeep/car when you mistype git

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

内容简介:Type the following commands, but install C compilers if not installed on your Linux system:And there you have it, gti a silly git launcher, basically inspired by

O ne of the most common mistakes developers and ops people make is typing gti instead of git command. I set an alias i.e. alias gti=git, but then you may miss out on the jeep/car on your screen.

Install gti software to get jeep/car

gti is nothing but humorous typo-based git runner. It drives a car over the terminal. Type the followingapt command/apt-get command on a Debian / Ubuntu Linux after enabling gti viaadd-apt-repository

sudo add-apt-repository ppa:mamantoha/gti

sudo apt-get update

sudo apt-get install gti

Fedora Linux user type the following dnf command:

sudo dnf install gti

Execute the following brew command on a macOS Unix desktop:

brew install gti

Run the following pkg_add command command on a OpenBSD:

doas pkg_add -v gti

FreeBSD user type the following pkg command:

sudo pkg_add -v gti

Arch Linux user try the pacman command:

sudo pacman -S gti-git

A note about source code installation

Type the following commands, but install C compilers if not installed on your Linux system:

Next, Grab source code using the git command

$ git clone https://github.com/rwos/gti.git

$ cd gti

$ make

$ sudo make install
Linux / Unix desktop fun: gti get jeep/car when you mistype git
Compile and install a silly git launcher, basically. Inspired by sl.

Usage

I just mistypes git command as gti:

$ gti command

$ gti clone https://github.com/nixcraft/domain-check-2.git
Linux / Unix desktop fun: gti get jeep/car when you mistype git

As you might have guessed by now, gti is intended to catch accidental typos of ‘gti’ instead of ‘git’. It displays an animation of a car driving by and then launches git. Any parameters or arguments given to gti will be passed through to the actual git binary. The car image is derived from the look of an old VW Golf GTI.

Linux/Unix environment variables supported by gti

Set GIT so that gti command respects the $GIT environment variable. If GIT is set, its value will be used to launch git after the animation finishes, instead of searching for git in your PATH:

export GIT=/opt/bin/git

gti clone foo

Want to control the speed of the gti command animation? Set GTI_SPEED (the default is 1000):

GTI_SPEED=2000 gti push ..

GTI_SPEED=2000 gti pull ..

GTI_SPEED=4000 gti clone ..

Conclusion

And there you have it, gti a silly git launcher, basically inspired by sl command that displays train . However, gti displays animations (jeep or car in the shell) aimed to correct users who accidentally enter gti instead of git for fun and profit. If you enjoyed this desktop fun app, you might also like to use the following apps on Linux:


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

查看所有标签

猜你喜欢:

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

UX设计之道

UX设计之道

[美]Russ Unger、[美]Carolyn Chandler / 陈军亮 / 人民邮电出版社 / 2015-4-1 / 49.00元

本书的目标是提供一些基本的工具及应用场景,帮助你及工作团队一起来使用这些工具和方法。正如你将在本书很多章节中看到的那样,我们没有尝试包罗万象、迎和所有的人,但我们试图给你提供一些用户体验(UX)设计师需要具备的核心信息和知识。除了我们自己的案例外,我们还提供了一些帮你了解如何开始准备基本材料的案例,让你可综合这些信息来创建某些更新、更好或者是更适合自己意图的东西。一起来看看 《UX设计之道》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

MD5 加密
MD5 加密

MD5 加密工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具