Skip to content

legdba/.dotfiles

Repository files navigation

Dotfiles

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.

How To Use It?

sh -c "$(curl -fsSL https://github.com/raw/legdba/.dotfiles/master/install.sh)"

It will:

  1. Clone the repo into $HOME/.dotfiles and call ~/.dotfiles/bootstrap.sh
  2. Install all common dev tools I need (curl, make, python, etc.) plus Docker.
  3. Change default shell to zsh
  4. Link all dotfiles from $HOME (any existing file will be silently renamed) for .zshrc, .zshenv, neovim, etc.
  5. 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...)
  6. Handle WSL2 docker case: the deamon is not installed
  7. Change the current shell to ZSH, install Zplug stuff
  8. 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.

TODO

  • Maybe migrate to GNU stow for simlinks management

Key Mapping

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

Fonts

Best fonts:

  1. 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.
  2. Consolas: very nice commercial font installed with MS Win and Office; lacks wide utf8 support (if it had it woul dbe better than DejaVu).
  3. Incolsolata: very nice free font, good both on screen and paper, but as for Consolas it does not have a wide utf8 support.

Extended glyphs

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.

Terminal Integration

  • Cmder: set the Solarized (Luke Maciak) theme.

License

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.

Releases

No releases published

Packages

No packages published