All Projects → Karmenzind → Dotfiles And Scripts

Karmenzind / Dotfiles And Scripts

🎣 Dotfiles and scripts providing cumbersome configure details and other senseless stuff. 一些无聊的脚本和配置文件

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to Dotfiles And Scripts

dotfiles
My arch setup script and dotfiles
Stars: ✭ 37 (-74.31%)
Mutual labels:  tmux, archlinux, arch
ArchLinuxTutorial
✨Arch Linux安装使用教程 每日实时更新! | 包含ArchLinux从安装到日常使用、娱乐、编程、媒体制作的各个方面,让Arch成为你的常用系统吧! | 提供在线网页文档 ✨
Stars: ✭ 513 (+256.25%)
Mutual labels:  archlinux, arch
config-public
Linux/WSL config to optimize ergonomics, security, and productivity: vim/neovim, zsh, tmux, i3, emacs, vscode, ipython, jupyter, ranger, fzf, kitty, xkb, selfquant, firejail, systemd, etc
Stars: ✭ 14 (-90.28%)
Mutual labels:  tmux, archlinux
Customarch
Arch Linux Based Custom ISOs Made With "Archiso"
Stars: ✭ 606 (+320.83%)
Mutual labels:  archlinux, arch
Cylon
A CLI TUI menu driven bash shell script supporting updates, maintenance, backups and system checks for an Arch based Linux distro
Stars: ✭ 121 (-15.97%)
Mutual labels:  archlinux, arch
lucjan-kernels
Dell Inspiron 15-3542 (3542-2538) with Fourth Gen Intel Core i3/i5/i7 optimized.
Stars: ✭ 16 (-88.89%)
Mutual labels:  archlinux, arch
Bauh
Graphical user interface for managing your Linux applications. Supports AppImage, Arch (repositories/AUR), Flatpak, Snap and native Web applications.
Stars: ✭ 280 (+94.44%)
Mutual labels:  archlinux, arch
arch-odroid
A simple script automatically installing Arch Linux for the ODROID.
Stars: ✭ 30 (-79.17%)
Mutual labels:  archlinux, arch
Pacaur
[unmaintained] An AUR helper that minimizes user interaction
Stars: ✭ 818 (+468.06%)
Mutual labels:  archlinux, arch
Linux On Pixel C
Documentation on how to run a Linux Distro on the Google Pixel C (2015)
Stars: ✭ 55 (-61.81%)
Mutual labels:  archlinux, arch
Ctlosiso
Ctlos Linux source. Arch based distro x86-64(64-bit).
Stars: ✭ 74 (-48.61%)
Mutual labels:  archlinux, arch
dotfiles
no passwords here ... I hope 🤞
Stars: ✭ 51 (-64.58%)
Mutual labels:  tmux, arch
zarch
The Ultimate Script For Arch Linux
Stars: ✭ 49 (-65.97%)
Mutual labels:  archlinux, arch
dotfiles
cross-platform (linux (arch), macos, android (termux), windows (WSL)) dotfiles and scripts, using yadm
Stars: ✭ 17 (-88.19%)
Mutual labels:  tmux, arch
Dotfiles
My bspwm dotfiles. Grab whatever you need! :)
Stars: ✭ 111 (-22.92%)
Mutual labels:  archlinux, arch
.dotfiles
There's no place like ~ !
Stars: ✭ 265 (+84.03%)
Mutual labels:  tmux, archlinux
dotfiles
dotfiles for the command line home
Stars: ✭ 21 (-85.42%)
Mutual labels:  tmux, archlinux
arch-packages
Arch Linux performance important packages
Stars: ✭ 27 (-81.25%)
Mutual labels:  archlinux, arch
Trizen
Lightweight AUR Package Manager
Stars: ✭ 696 (+383.33%)
Mutual labels:  archlinux, arch
Paru
Feature packed AUR helper
Stars: ✭ 1,240 (+761.11%)
Mutual labels:  archlinux, arch

dotfiles and scripts

ArchLinux安装脚本已经迁移至此处,暂不再维护

创建这个repo是为了减少重复工作,内容包含:

  1. 系统/软件配置,如Vim、i3wm、tmux等
  2. 安装脚本
    • 软件编译/安装脚本,如Vim-YCM插件
  3. 工具脚本
    • 工具脚本,如Docker、Aria2管理

TOC

用法简述

通过以下方式,可以快速使用我的配置文件

所有配置文件和工具脚本

通过以下命令来一键安装我所有的配置文件(支持交互模式选择)。配置文件结构见下文

这里提供两种方式:

创建软连接(推荐)

git clone https://github.com/Karmenzind/dotfiles-and-scripts --depth=1
cd ./dotfiles-and-scripts
python3 symlink.py

复制文件

git clone https://github.com/Karmenzind/dotfiles-and-scripts --depth=1
cd ./dotfiles-and-scripts
python3 do_synch.py apply

如果你想创建一个自己的dotfile仓库,参考下文

使用我的Vim配置

如果只需要我的Vim配置,Unix环境直接运行以下命令,等待自动安装完成

wget https://raw.githubusercontent.com/Karmenzind/dotfiles-and-scripts/master/home_k/.vimrc -O ~/.vimrc && vim 

也可以用脚本安装

使用root用户安装我的配置可能会出问题。我不喜欢给root用户单独配置,采用的做法是在/root目录下创建.vimrc.vim的软链接,与普通用户共用一套配置,供参考。如果要直接给root用户安装配置,请自行研究解决方案。

安装常用软件(仅供ArchLinux)

git clone https://github.com/Karmenzind/dotfiles-and-scripts --depth=1
bash ./install.sh

然后选择第一项。

配置文件目录

文件跳转目录,为避免杂乱,挪到底部

我使用的字体: Monaco Nerd

安装脚本部分

软件批量安装

_fonts数组中包含了ArchWiki中推荐的所有中文环境所需字体(不含AUR)

  1. 自行修改脚本,根据需要添加、删除软件
  2. 从install.sh进入选择install recommended apps

Vim及插件安装

Vim比较特殊,尤其是YCM经常安装失败,所以单独列出来

用脚本安装Vim和插件:

如果你已经安装了Vim,需要直接使用我的配置&插件,除了上面的脚本安装外,更简单的方法为直接执行Usage中提到的命令

YouCompleteMe编译安装

通过install.sh选择第四项单独安装YouCompleteMe插件时,需要注意:

  1. 阅读ycm.sh的开头部分
  2. 修改ycm.sh中的ycm插件安装地址
  3. 如果为Arch系统,直接选择任意一种方式安装;如果非Arch系统,选择official way可以直接安装,如果选择my way方式,需要手动安装python、cmake和clang,然后修改ycm.sh中的libclang.so地址

official way是采用ycm自带安装脚本编译安装,my way是用我写的命令编译安装。如果用my way安装时git clone速度太慢,可以手动修改ycm.sh中的git repo地址(脚本注释中提供了国内源)

Vim插件涉及依赖安装

部分插件依赖外部工具(比如fzfctagsag等)。按照上述步骤安装Vim以及插件之后,打开Vim,在命令行模式运行:

# 依赖系统中的`pip`和`npm`,需自行安装
call InstallRequirements()

安装过程中注意观察窗口日志提示。

工具脚本部分

Python虚拟环境快速切换

已经停止维护,请使用virtualenvwrapper

方便一堆虚拟环境需要切换的场景

Usage: 在脚本或环境变量中设置虚拟环境存放目录,然后

k 16:04:00 > ~ $ . acpyve
Pick one virtual environment to activate:

1  General_Py2
2  General_Py3

Input number: 2

Activating General_Py3...
/home/k

DONE :)

(General_Py3) k 16:04:16 > ~
$ 

Aria2管理&自动更新bt-tracker

功能:

  • 启动、重启、停止、查看运行状态、查看日志
  • 更新bt-tracker(从ngosang/trackerslist获取)。启动、重启时,配置周期触发更新,也可以通过myaria2 update主动更新
  • 转存旧日志
  • 其他一些简单功能

结合cron使用 配置项见脚本注释

本地Docker服务项目管理

方便一堆用Docker容器需要管理的场景
配合cron使用

效果截图

  • i3 desktop:

  • Vim:

创建你自己的DotFile仓库

以下两个脚本用来在系统中直接应用本repo中的配置文件

  • symlink.py 以创建软连接的方式(推荐)
  • do_synch.py 以复制(支持双向)的方式来更新、应用配置文件

你可以fork这个项目,然后借助上述两种方式来同步你自己的配置文件

文件目录

trees are generated by this script

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].