Config Files richtiger Pfad für Gitea
This commit is contained in:
parent
d884668e23
commit
062da36677
|
@ -17,4 +17,8 @@ Legt ein neues Verzeichnis an, initialisiert git, legt README an und pusht zum S
|
||||||
|
|
||||||
### gitclone
|
### gitclone
|
||||||
|
|
||||||
klont ein Repository vom eigenen Server und wechselt in das Verzeichnis
|
klont ein Repository vom eigenen Server und wechselt in das Verzeichnis
|
||||||
|
|
||||||
|
### initial install
|
||||||
|
|
||||||
|
curl -o- https://git.boergmann.it/src/branch/main/install.sh | sudo sh
|
||||||
|
|
|
@ -0,0 +1,75 @@
|
||||||
|
:set number
|
||||||
|
:set relativenumber
|
||||||
|
:set autoindent
|
||||||
|
:set tabstop=4
|
||||||
|
:set shiftwidth=4
|
||||||
|
:set smarttab
|
||||||
|
:set softtabstop=4
|
||||||
|
:set mouse=a
|
||||||
|
|
||||||
|
call plug#begin()
|
||||||
|
|
||||||
|
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw)
|
||||||
|
Plug 'https://github.com/preservim/nerdtree' " NerdTree
|
||||||
|
Plug 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc
|
||||||
|
Plug 'https://github.com/vim-airline/vim-airline' " Status bar
|
||||||
|
Plug 'https://github.com/lifepillar/pgsql.vim' " PSQL Pluging needs :SQLSetType pgsql.vim
|
||||||
|
Plug 'https://github.com/ap/vim-css-color' " CSS Color Preview
|
||||||
|
Plug 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme
|
||||||
|
Plug 'https://github.com/neoclide/coc.nvim' " Auto Completion
|
||||||
|
Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons
|
||||||
|
Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal
|
||||||
|
Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation
|
||||||
|
Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors
|
||||||
|
|
||||||
|
set encoding=UTF-8
|
||||||
|
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
nnoremap <C-f> :NERDTreeFocus<CR>
|
||||||
|
nnoremap <C-n> :NERDTree<CR>
|
||||||
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
|
nnoremap <C-l> :call CocActionAsync('jumpDefinition')<CR>
|
||||||
|
|
||||||
|
nmap <F8> :TagbarToggle<CR>
|
||||||
|
|
||||||
|
:set completeopt-=preview " For No Previews
|
||||||
|
|
||||||
|
:colorscheme jellybeans
|
||||||
|
|
||||||
|
let g:NERDTreeDirArrowExpandable="+"
|
||||||
|
let g:NERDTreeDirArrowCollapsible="~"
|
||||||
|
|
||||||
|
" --- Just Some Notes ---
|
||||||
|
" :PlugClean :PlugInstall :UpdateRemotePlugins
|
||||||
|
"
|
||||||
|
" :CocInstall coc-python
|
||||||
|
" :CocInstall coc-clangd
|
||||||
|
" :CocInstall coc-snippets
|
||||||
|
" :CocCommand snippets.edit... FOR EACH FILE TYPE
|
||||||
|
|
||||||
|
" air-line
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
|
||||||
|
if !exists('g:airline_symbols')
|
||||||
|
let g:airline_symbols = {}
|
||||||
|
endif
|
||||||
|
|
||||||
|
" airline symbols
|
||||||
|
let g:airline_left_sep = ''
|
||||||
|
let g:airline_left_alt_sep = ''
|
||||||
|
let g:airline_right_sep = ''
|
||||||
|
let g:airline_right_alt_sep = ''
|
||||||
|
let g:airline_symbols.branch = ''
|
||||||
|
let g:airline_symbols.readonly = ''
|
||||||
|
let g:airline_symbols.linenr = ''
|
||||||
|
|
||||||
|
inoremap <expr> <Tab> pumvisible() ? coc#_select_confirm() : "<Tab>"
|
||||||
|
|
||||||
|
highlight Normal guibg = none
|
||||||
|
highlight NonText guibg = none
|
||||||
|
highlight Normal ctermbg = none
|
||||||
|
highlight NonText ctermbg = none
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,148 @@
|
||||||
|
##################### Powerlevel10k ###################
|
||||||
|
|
||||||
|
# Initialization code that may require console input (password prompts, [y/n]
|
||||||
|
# confirmations, etc.) must go above this block; everything else may go below.
|
||||||
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Set the directory we want to store zinit and plugins
|
||||||
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||||
|
|
||||||
|
# Download Zinit, if it's not there yet
|
||||||
|
if [ ! -d "$ZINIT_HOME" ]; then
|
||||||
|
mkdir -p "$(dirname $ZINIT_HOME)"
|
||||||
|
git clone https://github.com/zdharma-continuum/zinit.git "$ZINIT_HOME"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Source/Load zinit
|
||||||
|
source "${ZINIT_HOME}/zinit.zsh"
|
||||||
|
|
||||||
|
zinit ice depth=1; zinit light romkatv/powerlevel10k
|
||||||
|
|
||||||
|
# Add in zsh plugins
|
||||||
|
zinit light zsh-users/zsh-syntax-highlighting
|
||||||
|
zinit light zsh-users/zsh-completions
|
||||||
|
zinit light zsh-users/zsh-autosuggestions
|
||||||
|
zinit light Aloxaf/fzf-tab
|
||||||
|
|
||||||
|
# Add in snippets
|
||||||
|
zinit snippet OMZP::git
|
||||||
|
zinit snippet OMZP::sudo
|
||||||
|
zinit snippet OMZP::archlinux
|
||||||
|
zinit snippet OMZP::aws
|
||||||
|
zinit snippet OMZP::kubectl
|
||||||
|
zinit snippet OMZP::kubectx
|
||||||
|
zinit snippet OMZP::command-not-found
|
||||||
|
|
||||||
|
# Load completions
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
|
||||||
|
zinit cdreplay -q
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
# Keybindings
|
||||||
|
bindkey -e
|
||||||
|
bindkey '^p' history-search-backward
|
||||||
|
bindkey '^n' history-search-forward
|
||||||
|
bindkey '^[w' kill-region
|
||||||
|
|
||||||
|
# History
|
||||||
|
HISTSIZE=5000
|
||||||
|
HISTFILE=~/.zsh_history
|
||||||
|
SAVEHIST=$HISTSIZE
|
||||||
|
HISTDUP=erase
|
||||||
|
setopt appendhistory
|
||||||
|
setopt sharehistory
|
||||||
|
setopt hist_ignore_space
|
||||||
|
setopt hist_ignore_all_dups
|
||||||
|
setopt hist_save_no_dups
|
||||||
|
setopt hist_ignore_dups
|
||||||
|
setopt hist_find_no_dups
|
||||||
|
|
||||||
|
# Completion styling
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
|
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
|
zstyle ':completion:*' menu no
|
||||||
|
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||||
|
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
||||||
|
|
||||||
|
####################### Aliases ###################
|
||||||
|
alias ls='ls --color'
|
||||||
|
alias vim='nvim'
|
||||||
|
alias c='clear'
|
||||||
|
alias s001='ssh klaas@s001'
|
||||||
|
alias s002='ssh klaas@s002.boergmann.it'
|
||||||
|
alias s003='ssh harald@klaas-boergmann.de'
|
||||||
|
|
||||||
|
###################### eigene Funktionen ############
|
||||||
|
# Make dir and enter
|
||||||
|
mkcdir()
|
||||||
|
{
|
||||||
|
mkdir -p -- "$1" &&
|
||||||
|
cd -P -- "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
export DOTNET_CLI_TELEMETRY_OUTPUT=1
|
||||||
|
export EDITOR=/usr/local/bin/nvim
|
||||||
|
export VISUAL=/usr/local/bin/nvim
|
||||||
|
export SUDO_EDITOR=/usr/local/bin/nvim
|
||||||
|
|
||||||
|
|
||||||
|
alias doch='sudo $(fc -ln -1)'
|
||||||
|
|
||||||
|
###################### Ruby #########################
|
||||||
|
export PATH="$PATH:$HOME/.rubies/ruby-3.3.4/bin:$HOME/.local/share/gem/ruby/3.3.0/bin"
|
||||||
|
|
||||||
|
###################### Node ########################
|
||||||
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # this loads nvm
|
||||||
|
|
||||||
|
# Shell integrations
|
||||||
|
# eval "$(fzf --zsh)"
|
||||||
|
|
||||||
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
||||||
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|
||||||
|
|
||||||
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
|
||||||
|
|
||||||
|
eval $(thefuck --alias)
|
||||||
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||||
|
|
||||||
|
export DOTNET_ROOT=$HOME/.dotnet
|
||||||
|
export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
|
||||||
|
|
||||||
|
# newgit
|
||||||
|
# legt neues Repository an und pusht zu Server
|
||||||
|
newgit()
|
||||||
|
{
|
||||||
|
mkcdir "$1" &&
|
||||||
|
git init &&
|
||||||
|
git checkout -b main &&
|
||||||
|
touch README.md &&
|
||||||
|
git add . &&
|
||||||
|
git commit -a -m "initial commit" &&
|
||||||
|
git remote add origin https://git.boergmann.it/klaas/"$1".git &&
|
||||||
|
git push -u origin main
|
||||||
|
}
|
||||||
|
|
||||||
|
fframes()
|
||||||
|
{
|
||||||
|
mkdir "$1"
|
||||||
|
ffmpeg -i "$1".mp4 "$1"/%03d.jpg
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
gitclone()
|
||||||
|
{
|
||||||
|
git clone https://git.boergmann.it/klaas/"$1".git &&
|
||||||
|
cd "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
|
||||||
|
|
||||||
|
PATH=~/.console-ninja/.bin:$PATH
|
||||||
|
|
||||||
|
alias get_idf='. $HOME/esp/esp-idf/export.sh'
|
|
@ -16,13 +16,13 @@ apt install nala -y
|
||||||
nala install ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
nala install ninja-build gettext libtool-bin cmake g++ pkg-config unzip curl git tmux build-essential manpages-dev clangd python3-jedi zsh -y
|
||||||
|
|
||||||
# zsh config
|
# zsh config
|
||||||
wget https://git.boergmann.it/klaas/shellskripte/main/configs/zshrc -O ~/.zshrc
|
wget https://git.boergmann.it/klaas/shellskripte/src/branch/main/configs/zshrc -O ~/.zshrc
|
||||||
|
|
||||||
# ssh Keys für alle Maschinen
|
# ssh Keys für alle Maschinen
|
||||||
wget https://git.boergmann.it/klaas/shellskripte/main/ssh/public_keys -O ~/.ssh/authorized_keys
|
wget https://git.boergmann.it/klaas/shellskripte/src/branch/main/ssh/public_keys -O ~/.ssh/authorized_keys
|
||||||
|
|
||||||
# ssh Password Authenitcatoon no
|
# ssh Password Authenitcatoon no
|
||||||
wget https://git.boergmann.it/klaas/shellskripte/main/ssh/ssh_password
|
wget https://git.boergmann.it/klaas/shellskripte/src/branch/main/ssh/ssh_password
|
||||||
./ssh_password -n
|
./ssh_password -n
|
||||||
|
|
||||||
# install neovim
|
# install neovim
|
||||||
|
@ -34,7 +34,7 @@ sudo make install
|
||||||
|
|
||||||
# config file for nvim
|
# config file for nvim
|
||||||
mkdir ~/.config/nvim
|
mkdir ~/.config/nvim
|
||||||
wget https://git.boergmann.it/klaas/shellskripte/main/configs/init.vim -O ~/.config/nvim/init.vim
|
wget https://git.boergmann.it/klaas/shellskripte/src/branch/main/configs/init.vim -O ~/.config/nvim/init.vim
|
||||||
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'
|
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 --headless +PlugInstall +qa
|
nvim --headless +PlugInstall +qa
|
||||||
# Language support for python and C
|
# Language support for python and C
|
||||||
|
|
Loading…
Reference in New Issue