# Dotfiles **Repository Path**: gemone/dotfiles ## Basic Information - **Project Name**: Dotfiles - **Description**: My dotfiles for my Linux System - **Primary Language**: Unknown - **License**: Unlicense - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-04 - **Last Updated**: 2023-04-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: Bash ## README # Dotfiles My dotfiles for Linux system which uses [`dotbot`][1] to manage. The shell plugin manager is [`sheldon`][2], if you use bash, please install it in your `PATH` first. Now the System is `Gentoo Linux`, it can work in `Debian`, `OpenSuse` and etc. ## Tools 1. Shell plugin manager: [`sheldon`][2]. [BASH USE IT] 2. The minimal, blazing-fast, and infinitely customizable prompt for any shell! [`startship`][3] [BASH USE IT] 3. Python scripts to manipulate trash cans via the command line: [`trash-cli`][4]. [ALIAS for rm] 4. A command-line fuzzy finder: [`fzf`][5]. [TMUX & BASH USE IT] 5. A cd command that learns - easily navigate directories from the command line: [`autojump`][6]. 6. A search tool that combines the usability of ag with the raw speed of grep: [`ripgrep`][7]. [VIM CocSearch USE IT] 7. The basic configuration of TMUX comes from [gpakosz/tmux][8] ## Editor See directory `vim`. ## Others ### Docker 与 Docker machine `docker` 容器污染本地环境,因此使用 `docker-machine` 来替代 `docker server`, 同时安装 `docker-cli` 方便本地使用 `docker` 命令。 借助 `eval $(docker-machine env xxx)`,`docker` 命令便可以连接到虚机提供的 `docker server`。 ### WPS 光标跟随 ```shell vim ~/.config/Trolltech.conf ``` ```yaml [Qt] XIMInputStyle=Off The Spot DefaultInputMethod=xim ``` ### NTP 随 NetworkManager 启动 使用 `dispatcher` 脚本: ```shell #!/usr/bin/env bash # /etc/NetworkManager/dispatcher.d/10-ntpd # 针对 openrc # 如果是 systemd 修改成对应 systemctl 即可 if [ -e /sbin/rc-service ]; then case "$2" in up) exec /sbin/rc-service ntpd start ;; down) exec /sbin/rc-service ntpd stop ;; pre-sleep) exec /sbin/rc-service ntpd stop esac fi ``` ## TODOS [ ] 1. 修正 `gpg` 后端,若无桌面环境更换至 `tty`。 [1]: https://github.com/anishathalye/dotbot/ [2]: https://rossmacarthur.github.io/sheldon/Getting-started.html [3]: https://starship.rs/guide/#%F0%9F%9A%80-installation [4]: https://github.com/andreafrancia/trash-cli [5]: https://github.com/junegunn/fzf/ [6]: https://github.com/wting/autojump [7]: https://github.com/BurntSushi/ripgrep [8]: https://github.com/gpakosz/.tmux