My dotfiles setup.
THIS IS ONLY FOR PERSONAL USE ON MY DEVELOPMENT ENVIRONMENTS. NOT TESTED BESIDE MY OWN ENVS. ONLY SUPPORTS UBUNTU 20.04 BOTH ON NATIVE LINUX AND WSL2. USE AT YOUR OWN RISKS. YOU'VE BEEN WARNED.
If you're looking for a base dotfiles repo you should have a look at the excelents holman or thoughtbot repos instead.
sh -c "$(curl -fsSL https://github.com/raw/legdba/.dotfiles/master/install.sh)"
It will:
- Clone the repo into
$HOME/.dotfiles
and call~/.dotfiles/bootstrap.sh
- Install all common dev tools I need (curl, make, python, etc.) plus Docker.
- Change default shell to zsh
- Link all dotfiles from $HOME (any existing file will be silently renamed)
for
.zshrc
,.zshenv
, neovim, etc. - Set sane GIT default (i.e. for any newly cloned/created repo to be set with explicit local user.name and user.email in order to avoid multi-account mistakes when using global default...)
- Handle WSL2 docker case: the deamon is not installed
- Change the current shell to ZSH, install Zplug stuff
- Returns on a configured ZSH prompt, ready to go. (note that the 1st install on WSL will require a logout for the C: mount change to take effect)
To re-run simply do
~/.dotfiles/bootstrap.sh
The boostrap.sh
script is idempotent: it can be re-run at anytime to reset the
system.
- Maybe migrate to GNU stow for simlinks management
TMUX
Keys | Action |
---|---|
Ctrl-h/j/k/l | Move to plane/split in tmux/vi |
Ctrl-b Ctrl-h/j/k/l | Resize planes in tmux |
Ctrl-b [ | Edit mode |
Best fonts:
- DejaVu Sans Mono: nice font with wiiide support for utf8 chars often used as shell promp markers. It has a dotted zero instead of a slashed one.
- Consolas: very nice commercial font installed with MS Win and Office; lacks wide utf8 support (if it had it woul dbe better than DejaVu).
- Incolsolata: very nice free font, good both on screen and paper, but as for Consolas it does not have a wide utf8 support.
DejaVu has a whide utf8 support for most glyphs shell prompts and CLI uses. Consolas and Incolsolata don't however and could typically require substitution characters to be defined into the console SW.
- Cmder: set the Solarized (Luke Maciak) theme.
This software is under Apache 2.0 license.
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.