dotfiles 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
dotfiles 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
dotfiles 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 GPL-3.0 License
开发语言 SHELL
操作系统 未知
软件类型 开源软件
所属分类 开发工具Git开源工具
开源组织
地区 不详
投 递 者 首席测试
适用人群 未知
收录时间 2021-10-22

软件简介

Ninrod’s emacs, vim, zsh and tmux dotfiles

https://img.shields.io/badge/license-GPLv3-blue.svg

  • Minimalism, speed and power while working inside the shell.

“You are your dotfiles.” – Friedrich Wilhelm Nietzsche

“Show me your dotfiles and I’ll tell you what kind of programmer you are.” – Karl Marx

Screenshots

Ubuntu: emacs and vim

https://raw.githubusercontent.com/ninrod/dotshots/master/ubuntu.png

terminal

https://raw.githubusercontent.com/ninrod/dotshots/master/2017-02-vim-tmux-zsh.png

Note

These are my personal configuration files, which are in a constant state of change as I develop my environment across several systems so I can’t guarantee that these configurations will work for you, at all. Still, it can be useful and instructional to look around and take bits and snippets to use within your own configuration files. Feel free to open issues though, if the config did not work for you. I’ll try to help if I can.

Install Instructions

  • On linux, I recommend xfce-terminal. Failling that, try to use any truecolor terminal.
  • Secondly, this is for unix systems: GNU/Linux, OSx, BSDs. I don’t know anything about windows.
  • configure your terminal to use the gruvbox theme. There’s a ninrod/themes repo that can help you with that.
  • recommendation: I use and recommend the excelent Fantasque Sans Mono font.
  • now get vim 8+ with +clipboard.
  • get tmux 2.5+
  • get zsh 5.4+ and make sure that /bin/zsh is valid. (if not: $ cd /bin && sudo ln -s $(command -v zsh) zsh)
  • cat /etc/shells and verify that zsh appears on the list. If not, sudo vi /etc/shells and append /bin/zsh
  • get ag (you can brew install ag on OSx).
  • if you’re on OSx, brew install these:
    1. brew install coreutils (mainly because BSD ls CLICOLOR sucks).
    2. brew install reattach-to-user-namespace (Mainly because of the open utility. more info here).
    3. brew install diff-so-fancy
  • Kind remark: for the moment (until I change the script to back it up for you), I’ll overwrite your ~/.gitconfig file, so if you have something important in it, now would be the perfect moment to back it up.
  • new get emacs 25.2+ (this is optional, everything will work fine if you don’t use emacs)

Shell time

now lets write some shell commands.

  • note: the install.zsh script basically does this:
    1. mounts symlinks on your home folder;
    2. creates ~/.options/shell-options.zsh file, if not existent
    3. sources the ~/.options/shell-options.zsh file
    4. overwrites your .gitconfig (so back it up if you have something important)
    5. tries to configure your git information, if applicable.
    6. fetches vim and zsh dependencies
  • now open you shell and don’t forget to set up your git information (vim ~/.options/shell-options.zsh)
$ git clone https://github.com/ninrod/dotfiles && cd dotfiles && make
$ vim ~/.options/shell-options.zsh
$ exec zsh
  • That’s it, your’re all set.
  • protip: make update will update all dependencies.

On installing new plugins

You may notice that I do not use any plugin manager, just a tiny little function I wrote called ningrab. For now, if you want to include a new plugin, search for the *-deps.zsh files in the boot directory. The files should be self descriptive. Just add a newline like this in, for example, vim-deps.zsh file:

ningrab githubuser/awesomeplugin

and then run make in the ~/.dotfiles directory. The plugin will be fetched from github and placed in the correct location for you.

Emacs: the timeless and infinitely powerful editor

I maintain my configuration using an org-mode file, through org-babel. So you can see it in it’s full glory here.

VIM: Powerful shell text editor. Tweaked with plugins.

To check out what binds and plugins I use in this config, my vim directory is authoritative.

TMUX custom binds

checkout the keybinds.tmux file for binding setup.

LICENSE

GNU General Public License v3
Copyright (c) 2015-2021 Filipe Silva (ninrod)

LINKS

first commit

展开阅读全文

代码

评论 (0)

加载中
更多评论
暂无内容
发表于DevOps专区
2015/07/22 13:40

dotfiles新手教程

前言 大概四个月前,跟朋友聊天,谈到了dotfiles的问题,当时还不知道dotfiles这东西是什么,回去google一下,看得一堆文件想着这什么跟什么啊,就没管了,后来又见paul irish在视频中提到了dotfiles,想着来点钻研精神,就仔细地研究了一下 dotfiles 相关的知识。这篇博文属于技术类,没兴趣的朋友们可以关闭此窗口了。 首先复制下自己100天前在V2EX发的帖子「菜鸟如何入门dotfiles管理?」,看看我当时是怎么理解dotfiles。 ...

0
0
发表了博客
2013/04/08 10:57

尝试使用 fresh 管理 dotfiles

[fresh][1] 是个新工具,谈及使用此工具的最佳实践的文章还没有,搜到的也是[尝鲜的][2]。 我自己也只是简单按自己的习惯[定制了下][3]。 [1]: http://freshshell.com/ [2]: http://bitterjug.com/blog/getting-fresh/ [3]: https://github.com/zhangcheng/dotfiles

0
0
发表了博客
2015/10/25 16:49

怎样管理 linux / mac 的配置文件

# 怎样管理 linux / mac 的配置文件 在 *nix 系统中,home 目录下一般有许多程序的配置文件([rc files](https://en.wikipedia.org/wiki/Run_commands)),它们可以更改程序运行时的行为。 如何管理并在多台机器上分享、同步这些配置文件也算是一个棘手的问题,当然解决方法也有不少 ## 使用 git 直接管理 home 目录 使用 git 之类的版本控制工具把整个 home 目录保存下来,这其中 ignore 文件也有两种处理方式 ### 一种是先 igno...

0
5
发表于运维专区
2014/04/22 00:19

如何管理自己的编程环境

#如何管理自己的编程环境 unix下有很多经典的工具,编辑器有Vim、Emacs等,shell有Bash、zsh等,版本控制有git,终端复用工具有tmux……这些工具有个普遍的特征,那就是高度的可配置性,可以根据自己的喜好以及习惯进行不同的配置,就拿vim来说,我周围使用vim的人都将vim配置的各不相同,可以说十个人就有十种不同的vim。 当初我配vim的时候是在网上到处搜索别人的vimrc,找个比较炫的拷到自己的系统,然后一个个的去搜罗各种插...

0
17
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部