Skip to content

romangauchi/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

Screenshot of my Tmux configuration

Installation

  1. Clone the dotfiles repertory anywhere you want
  2. Archive (-A) your current configuration files
  3. Synchronize (-S) and install (-I) dependencies with dotfiles-manager.sh
  4. Restart another shell, it will works!
git clone https://github.com/romangauchi/dotfiles.git
cd dotfiles
./dotfiles-manager.sh -ASI

Dependencies

The dotfiles-manager.sh installs the following dependencies on your system:

  • Tmux Plugin Manager: support plugins on Tmux github.
  • Nerd Fonts: support glyph/icons from popular fonts as Font Awesome, Powerline, Devicons on github.
  • Powerline Fonts: (not used) pre-patched fonts for usage with the Powerline statusline plugin on github.

dotfiles-manager.sh

The dotfiles-manager.sh deploys the environment on the current HOME directory or a given destination directory (--home <my-workspace>). The installation copies the content of the dotfiles directory and installs the required dependencies. Additional arguments can be used to preview modifications (-n,--dry-run) or to overwrite files without prompting (-f, --force).

Usage: dotfiles-manager.sh <operations> [options]

Operations:
  -S, --sync            synchronize dotfiles to the HOME directory
  -I, --install         install extra dependencies (fonts)
  -A, --archive         save your current dotfiles in an archive

Options:
      --home[=]<dir>    give another home destination directory
                        (default: <your-home-dir>)
      --output[=]<file> give another archive name to save your dotfiles
                        (default: <dotfiles-hostname-date>)
  -n, --dry-run         display status of new/updated/conflicting files
  -f, --force           overwrites files without asking
  -h, --help            display this help and exit

Customization

You can freely improve your environment by editing {zsh|bash|csh}rc.perso and {zsh|bash|csh}rc.first in order to add software or dependency and keeping updates of this project. Those files will never exist in this project, they will not be overwritten.

New plugins on Tmux

  1. Add new plugin to ~/.tmux.conf with set -g @plugin '...'
  2. Press prefix + I (capital I, as in Install) to fetch the plugin

You're good to go! The plugin was cloned to ~/.tmux/plugins/ directory and sourced.

New color theme (zsh, bash & csh)

Download color configuration files from this github project, choose your theme and download it into your environment with this command.

wget -nv https://raw.githubusercontent.com/Mayccoll/Gogh/master/themes/solarized-dark.sh -P ~/.themes

Then you can edit your {zsh|bash|csh}rc.perso to define background, dark_theme and light_theme to use.

Troubleshooting

Wrong colors in gnome-terminal

  1. Go to Profile Preferences > Title and Command > Check "Run a custom command instead of my shell"
  2. Enter in Custom command: env TERM=xterm-256color /bin/tcsh

Note: you can directly change the Shell interpreter through this trick... (env TERM=xterm-256color /bin/bash)

Acknowledgments

License

Use this setup at your own risk, no guarantee is provided whatsoever

Releases

No releases published

Packages

No packages published