ssh0 / dotfiles

My dotfiles for herbstluftwm, tmux, zsh, Vim, and other applications...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

日本語

dotfiles

This repository contains my dotfiles.

I use dotfiles manager dot in order to:

  • Set symbolic links
  • Add new file to this repository
  • Switch machine specific configurations

Contents

Screenshot

screenshot.png

How to Install

ssh0/dot: dotfiles management framework with shell

Clone this repository by

git clone https://github.com/ssh0/dotfiles.git ~/.ssh0-dotfiles

Then, execute:

cd ~/.ssh0-dotifles
./install.sh

install.sh will install dot and make the symolic links written in dotlink.

  • Clone the repository
git clone https://github.com/ssh0/dot $HOME/.zsh/dot
  • Write in your {bash|zsh}rc like below:
export DOT_REPO="https://github.com/your_username/dotfiles.git"
export DOT_DIR="$HOME/.dotfiles"
fpath=($HOME/.zsh/dot $fpath)  # <- for completion
source $HOME/.zsh/dot/dot.sh

See details at dot's README.

  • Create the dot's config file for this repository(of cource you can make that for your own dotfiles)
mkdir -p $HOME/.config/dot
cat > $HOME/.config/dot/dotrc-ssh0 << EOF
clone_repository="https://github.com/ssh0/dotfiles.git"
dotdir="$HOME/.dotfiles-ssh0"
dotlink="$HOME/.dotfiles-ssh0/dotlink"
linkfiles=("$HOME/.dotfiles-ssh0/dotlink")
EOF
  • Write like below in your {bash|zsh}rc and reload shellrc:
alias dot-ssh0="dot_main -c $HOME/.config/dot/dotrc-ssh0"
  • Execute the dot command:
dot-ssh0 clone -f && dot-ssh0 set

Then, this repository is cloned on your computer and the symbolic links will be created.

If files or links have already existed, this command will ask you to choose the operation. So, don't worry about breaking your existing system. You can skip these conflict files by using dot-ssh0 set -i.

This repository is work-in-progress and some files will be changed in the future. If you want to follow up-to-date settings:

dot-ssh0 update

Clone (or folk) this repository on your computer:

git clone --recursive https://github.com/ssh0/dotfiles.git ~/.dotfiles-ssh0

then, you can copy or make a symbolic from the directory to the right place(described in dotlink).

Local settings

For my other machines ...

ThinkPad T540p

~/.zsh/rc.mine

export PC=T540p/

Lenovo IdeaPad S10e

~/.zsh/rc.mine

export PC=S10e/

License

All the files in this repository (except submodule) is under WTFPL - Do What the Fuck You Want to Public License.

See full text at LICENSE.

About

My dotfiles for herbstluftwm, tmux, zsh, Vim, and other applications...

License:Do What The F*ck You Want To Public License


Languages

Language:Shell 38.5%Language:Lua 22.0%Language:Haskell 13.1%Language:Python 11.7%Language:Vim Script 11.1%Language:CSS 3.4%Language:TeX 0.2%Language:Perl 0.1%Language:HTML 0.0%