From 1f7d311be62acf2c84bc47ecbc5b9d75548abe11 Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Tue, 11 Jan 2022 11:00:06 +0100 Subject: [PATCH] Inital commit Using stow --- .bash_aliases | 15 +++++++++++ .config/bat/config | 5 ++++ .gitconfig | 26 ++++++++++++++++++ .nanobackup/.gitkeep | 0 .nanobackup/.stow-local-ignore | 1 + .nanorc | 9 +++++++ .../themes/custom-robbyrussell.zsh-theme | 27 +++++++++++++++++++ 7 files changed, 83 insertions(+) create mode 100644 .bash_aliases create mode 100644 .config/bat/config create mode 100644 .gitconfig create mode 100644 .nanobackup/.gitkeep create mode 100644 .nanobackup/.stow-local-ignore create mode 100644 .nanorc create mode 100644 .oh-my-zsh/themes/custom-robbyrussell.zsh-theme diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..9e4e457 --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,15 @@ +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + alias dir='dir --color=auto' + #alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' +fi + +alias bat='batcat' +alias docker='sudo docker' + + diff --git a/.config/bat/config b/.config/bat/config new file mode 100644 index 0000000..50c965e --- /dev/null +++ b/.config/bat/config @@ -0,0 +1,5 @@ +--theme="OneHalfLight" +--style="auto" +--map-syntax "*.ino:C++" +--map-syntax='*.conf:INI' +--force-colorization diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..5b1a5ea --- /dev/null +++ b/.gitconfig @@ -0,0 +1,26 @@ +[user] + email = daniel-git@c0ntroller.de + name = Daniel Kluge + signingKey = ~/.ssh/id_rsa.pub +[init] + defaultBranch = senpai +[alias] + lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)' --all + fpush = push +[rerere] + enabled = true + autoUpdate = true +[branch] + sort = -committerdate +[column] + ui = auto +[commit] + gpgSign = true +[push] + gpgSign = if-asked +[tag] + gpgSign = true +[gpg] + format = ssh +[url "https://github.com/"] + insteadOf = ssh://git@github.com/ diff --git a/.nanobackup/.gitkeep b/.nanobackup/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/.nanobackup/.stow-local-ignore b/.nanobackup/.stow-local-ignore new file mode 100644 index 0000000..d7afdfb --- /dev/null +++ b/.nanobackup/.stow-local-ignore @@ -0,0 +1 @@ +\.gitkeep diff --git a/.nanorc b/.nanorc new file mode 100644 index 0000000..ed4ac0f --- /dev/null +++ b/.nanorc @@ -0,0 +1,9 @@ +set autoindent +set backup +set backupdir "/home/daniel/.nanobackup" +set constantshow +set indicator +set linenumbers +set mouse +set noconvert + diff --git a/.oh-my-zsh/themes/custom-robbyrussell.zsh-theme b/.oh-my-zsh/themes/custom-robbyrussell.zsh-theme new file mode 100644 index 0000000..af46648 --- /dev/null +++ b/.oh-my-zsh/themes/custom-robbyrussell.zsh-theme @@ -0,0 +1,27 @@ +ZSH_THEME_GIT_PROMPT_ADDED="A" +ZSH_THEME_GIT_PROMPT_MODIFIED="M" +ZSH_THEME_GIT_PROMPT_DELETED="M" +ZSH_THEME_GIT_PROMPT_RENAMED="M" +ZSH_THEME_GIT_PROMPT_UNMERGED="" +ZSH_THEME_GIT_PROMPT_UNTRACKED="U" + +function my_git_color() { + local state="$(git_prompt_status)" + case "$state" in + *"A"*) echo -n "%B%F{green}";; + *"M"*) echo -n "%B%F{yellow}";; + *"U"*) echo -n "%F{141}";; + *) echo -n "%F{red}";; + esac +} + +ZSH_THEME_GIT_PROMPT_PREFIX="%F{blue} [$(my_git_color)" +ZSH_THEME_GIT_PROMPT_SUFFIX="%b%F{blue}]%f " +ZSH_THEME_GIT_PROMPT_DIRTY="" +ZSH_THEME_GIT_PROMPT_CLEAN="" +ZSH_THEME_VIRTUALENV_PREFIX="%F{white}[%B%F{green}" +ZSH_THEME_VIRTUALENV_SUFFIX="%b%F{white}]%f " + +PROMPT_CHAR="%B%F{grey}\$%b%f" +PROMPT='%B%(?:%F{green}→:%F{red}→)%b%f %F{cyan}%c%f $PROMPT_CHAR%f ' +RPROMPT='$(virtualenv_prompt_info)$(git_prompt_info)'