Skip to content

My personal terminal setup

Notifications You must be signed in to change notification settings

KaspervdHeijden/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

This repository enables me to quickly setup a shell environment to my liking. It currently only supports Debian based distro's. Dotfiles uses the following binaries:

  1. git (required)
  2. tmux
  3. vim

Personally, I also want:

  1. ack
  2. tree

Dotfiles supports these shells:

  1. bash (oh-my-bash is supported)
  2. zsh (oh-my-zsh is supported, not required)

Install them all:

sudo apt -y update && sudo apt -y install git tmux ack tree vim zsh; # debian
sudo pacman -S git tmux ack tree vim zsh;  # arch

Installation

First, clone this repository and source the install.sh file:

git clone 'https://github.com/KaspervdHeijden/dotfiles.git' && . ./dotfiles/setup/install.sh;

When using bash, you can make autocomplete case-insensitive by doing:

[ ! -f ~/.inputrc ] && [ -f /etc/.inputrc ] && echo '$include /etc/.inputrc' > ~/.inputrc;
echo 'set completion-ignore-case On' >> ~/.inputrc;

Notes

gitc function

Working with a repository where you don't need (or want) to perform fork-, default branch- and/or newline checks, you can pass the appropriate flags or define git variables for them.

Add the variable to the specific reposity, to not have to pass -f anymore:

# override line endings check, to not have to pass -n
git config --local dotfiles.checkLineEndings 0;

# override fork check, to not have to pass -f
git config --local dotfiles.checkFork 0;

# override default branch check, to not have to pass -d
git config --local dotfiles.checkDefaultBranch 0;

This needs to be done on every machine, since git variables aren't part of the repository itself.

You can also use global variables, $DF_CHECK_FORK, $DF_CHECK_LINE_ENDINGS and $DF_CHECK_MASTER. These can be set in ~/.config/dotfiles/config.sh which will be sourced last. If set in variables, they apply to all repositories.

Prompt

Setting the variable $DF_GIT_PROMPT_SHOW_DIRTY to a non-empty value will show status information in the prompt, but may significantly slow down the prompt.

You can define the $DF_DOTFILES_HOST_PROMPT_COLOR_BASH or $DF_DOTFILES_HOST_PROMPT_COLOR_ZSH variables to control the color for the host part in the prompt. It defaults to green.

Plugins

Dotfiles supports custom plugins. These are git repositories from which a shell script will be sourced. By default, plugins will be installed in the ./plugins directory, but this can be overriden by the $DF_PLUGIN_DIR variable.

About

My personal terminal setup

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published