Skip to content

Insomnia1437/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

108 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles managed with dotdrop

System requirement

Not only for dotdrop

RHEL based

$ sudo yum install -y vim tar gzip bzip2 unzip perl-core pciutils net-tools lm_sensors telnet bash-completion sysstat python3 tree python3-pip git curl wget nfs-utils perf autofs rpm-build zsh tmux telnet screen readline-devel libtirpc-devel

Debian based

sudo apt install -y build-essential vim git tmux zsh telnet screen curl htop libreadline-dev libtirpc-dev

Arch based

sudo pacman -S --needed base-devel vim git tmux zsh inetutils screen curl htop readline ttf-sourcecodepro-nerd

macOS

brew install vim gpg pinentry-mac font-sauce-code-pro-nerd-font re2c fd fzf bat

other tools

# use cargo to install
cargo install fd-find bat
# if using apt to install, link is needed
mkdir -p ~/.local/bin
ln -s $(which fdfind) ~/.local/bin/fd
ln -s $(which batcat) ~/.local/bin/bat

Installation

# for macOS
$ brew install dotdrop

# For Debian > 12, python modules are managed by apt.
$ sudo apt install dotdrop

# for old Debian
$ sudo apt install python3-docopt python3-distro python3-ruamel.yaml python3-toml python3-tomli python3-tomli-w python3-requests python3-packaging python3-jinja2 python3-magic

# for Arch
$ sudo pacman -S python-docopt python-distro python-ruamel-yaml python-toml python-tomli python-tomli-w python-requests python-packaging python-jinja python-magic

# https://stackoverflow.com/questions/3796927/how-to-git-clone-including-submodules
# for version 2.13 of git and later
$ git clone --recurse-submodules https://github.com/Insomnia1437/dotfiles.git ~/.config/dotfiles
# otherwise
$ git clone --recursive https://github.com/Insomnia1437/dotfiles.git ~/.config/dotfiles
$ cd ~/.config/dotfiles
$ pip3 install --user -r dotdrop/requirements.txt
# ./dotdrop/bootstrap.sh

Update dotdrop submodule

# init submodule
$ git submodule update --init --recursive
# reset submodule to parent"s version
$ git submodule update --checkout dotdrop
# update submodule to upstream's latest version
$ git submodule update --remote dotdrop

$ git add dotdrop
$ git commit -m 'update dotdrop'
$ git push
# on another machine
$ git submodule update
$ git pull

Use dotdrop

dotdrop help
dotdrop install -p profle_name

Themes

As I fee discomfort when looking at a dark background, so I decide to gradually migrate to Catppuccin Latte theme for all my environments.

How to know your keymap:

Run cat -v in your favorite terminal emulator to observe key codes. (NOTE: In some cases, cat -v shows the wrong key codes. If the key codes shown by cat -v don't work for you, press CTRL-V, then CTRL-UP and CTRL-DOWN at your ZSH command line prompt for correct key codes.)

CTRL-V is actually defined by shell bindings. check it using bindkey | grep quote

CSH default bindings vi-mode

Insert mode bindings

Command DefaultKeySequence(s)
backward-char CTRL-B
backward-delete-char BACKSPACE,DEL
backward-delete-word CTRL-W
backward-kill-line CTRL-U
beginning-of-line CTRL-A
clear-screen CTRL-L
complete-word TAB
end-of-line CTRL-E
kill-line CTRL-K

Acknowledgement

About

some configuration of my home dot files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors