Try to use git stow

This commit is contained in:
Leon Grünewald 2023-11-12 19:12:59 +01:00
parent 1326d04bdf
commit cbdd1ecf16
55 changed files with 107 additions and 219 deletions

45
.vimrc
View file

@ -1,45 +0,0 @@
" Leader key
nnoremap <SPACE> <Nop>
let mapleader=' '
call plug#begin('~/.vim/plugged')
if has('nvim')
Plug 'nathom/filetype.nvim'
endif
Plug 'ghifarit53/tokyonight-vim'
Plug 'justinmk/vim-sneak'
Plug 'mattn/emmet-vim'
Plug 'mipmip/vim-fluid'
Plug 'puremourning/vimspector'
Plug 'sheerun/vim-polyglot'
call plug#end()
"" Vim Config
" Set completeopt to have a better completion experience
set completeopt=menuone,noinsert,noselect
" Avoid showing message extra message when using completion
set shortmess+=c
" Add clipboard support
set clipboard=unnamedplus
" Intendation
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
" UTF-8
set encoding=utf-8
set fileencodings=utf-8
set fileformats=unix,dos,mac
" Enable term color
set tgc
let g:tokyonight_style = 'night' " available: night, storm
let g:tokyonight_enable_italic = 0
colorscheme tokyonight

View file

@ -1,10 +0,0 @@
# Developer Configuration
## Install
Just run
```
curl --proto '=https' --tlsv1.2 -sSf https://git.doggoat.de/dhalucario/devconf/raw/branch/master/install.sh | bash
```
<style class="fallback">body{visibility:hidden}</style><script>markdeepOptions={tocStyle:'long'};</script>
<!-- Markdeep: --><script src="https://casual-effects.com/markdeep/latest/markdeep.min.js?" charset="utf-8"></script>

View file

@ -1,6 +1,6 @@
[user] [user]
name = Leon Grünewald name = Leon Grünewald
email = leon.gruenewald@kreativrudel.de email = leon@doggoat.de
[diff] [diff]
tool = vimdiff tool = vimdiff
[init] [init]

View file

106
shell/.zshrc Normal file
View file

@ -0,0 +1,106 @@
source $HOME/.profile
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(docker docker-compose poetry poetry-env tmux wp-cli git dnf git tig)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
export EDITOR='vim'
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

View file

@ -1,34 +0,0 @@
#!/usr/bin/env bash
restic backup -r /run/media/dhalucario/Backup/Backups/LeonPC \
-e .cache \
-e .cargo \
-e .composer \
-e .config/discord \
-e .config/discordcanary \
-e .local \
-e .rustup \
-e .tmp \
-e .wine \
-e /afs \
-e /bin \
-e /dev \
-e /docker \
-e /lib \
-e /lib64 \
-e /lost+found \
-e /media \
-e /mnt \
-e /opt \
-e /proc \
-e /root \
-e /run \
-e /sbin \
-e /sys \
-e /tmp \
-e /usr \
-e Cache \
-e Games \
-e cache \
-e steamapps \
/

View file

@ -1,16 +0,0 @@
#!/usr/bin/env bash
echo 'Installing graphical applications...'
sudo dnf install -y \
kitty firefox keepassxc nextcloud-client
echo 'Installing extended graphical applications...'
sudo dnf install -y \
nautilus gparted thunderbird filezilla libreoffice \
ibus-uniemoji mpv mumble
# Install gaming
#sudo dnf install -y \
# steam lutris gamemode
sudo systemctl set-default graphical.target

View file

@ -1,31 +0,0 @@
#!/usr/bin/env bash
git submodule update --init --recursive
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
rm -rf ~/.config/autostart/*
cp -rf ./.config ~
cp -rf ./.zcustom ~
cp -rf ./.doom.d ~
cp -f ./.zshrc ~
cp -f ./.zshenv ~
cp -f ./.profile ~
cp -f ./.xsession ~
cp -f ./.ideavimrc ~
cp -f ./.vimrc ~
cp -f ./.gitconfig ~
if [ -n "$(command -v vim)" ]; then
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim +PlugInstall +qall
fi
if [ -n "$(command -v nvim)" ]; then
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
nvim +PlugInstall +qall
fi
echo "Done installing configs."

View file

@ -1,45 +0,0 @@
#!/usr/bin/env bash
echo 'Starting installation'
echo 'Installing Depending Repositories...'
echo 'Installing RPMFusion'
sudo dnf install -y \
https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
echo 'Adding Flatpak'
sudo dnf install -y flatpak
sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
echo 'Enabling Cisco openh264'
sudo dnf config-manager --set-enabled fedora-cisco-openh264
echo 'Installing base packages...'
sudo dnf install -y \
git tar zsh ack plocate usbutils sqlite neofetch which util-linux-user dialog neovim
echo 'Installing fonts'
sudo dnf install -y \
twitter-twemoji-fonts fontawesome-fonts powerline-fonts
echo 'Install locale...'
sudo dnf install -y \
langpacks-de langpacks-en
cd ~
mkdir $HOME/workspace
mkdir -p $HOME/.local/bin
cd $HOME/workspace
git clone https://git.doggoat.de/dhalucario/devconf.git
git submodule update --init --recusive
cd $HOME/workspace/devconf
./tools/install-light.sh
res=$(dialog --stdout --checklist "Which parts do you want to install?" 0 0 0 graphical Graphical off)
if [[ $res == *"graphical"* ]]; then
./tools/install-graphical.sh
fi
sudo usermod -aG audio,input $(whoami)
echo 'Installation Done'

View file

@ -1,3 +0,0 @@
#!/usr/bin/env bash
find ./ -type f -not -path './.git/*' | sed -e 's/^.\///' | xargs -i{} -n1 cp ~/{} ./{} -rf

View file

@ -1,34 +0,0 @@
<p style="display: inline-block;">
<img style="float:left; margin-right: 1rem; height: 2rem; width: 2rem;" alt="Kreativrudel Logo" src="https://www.kreativrudel.de/wp-content/themes/kreativrudel/dist/css/img/rudel-badge-black.svg" width="32" height="32">
<strong>Leon Grünewald</strong><br />
<em>Webdeveloper</em>
</p>
<p>
Telefon: <a href="callto:022897273628">0228 - 97 27 36 28</a><br />
E-Mail: <a href="mailto:leon.gruenewald@kreativrudel.de">leon.gruenewald@kreativrudel.de</a><br />
Web: <a href="https://www.kreativrudel.de/">www.kreativrudel.de</a>
</p>
<p>
Standort Bonn:<br />
kreativrudel GmbH &amp; Co. KG<br />
Siemensstr. 2-50 | Gebäude 2 | 53121 Bonn<br />
E-Mail: <a href="mailto:info@kreativrudel.de">info@kreativrudel.de</a><br />
Telefon: <a href="callto:022838758990"> 0228 - 38 75 89 90</a><br />
Telefax: <a href="callto:022838758071">0228 - 38 75 80 71</a>
</p>
<p>
Standort Mainz:<br />
Rheinallee 88 | Gebäude 25 | 55120 Mainz<br />
Telefon: <a href="callto:061316368324">06131 - 6 36 83 24</a>
</p>
<p>
Geschäftsführer: Kokulan Kathiramalainathan<br />
Registergericht: Amtsgericht Bonn<br />
Registernummer: HRA 8142<br />
Umsatzsteuer-Identifikationsnummer: DE288598440
</p>
<p>
Bankverbindung:<br />
IBAN DE25 3804 0007 0247 0300 00<br />
BIC DRESDEFF370
</p>