added the config files .zshrc, .vimrc in home-directory and the bash script home_backup.sh in scripts

main
Isabell Pflug 2 years ago
parent 82d84d3c73
commit 846e89fcfb

@ -0,0 +1,43 @@
" automatically update plugin manager (vim-plug)
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
" Disable compatibility with vi which can cause unexpected issues.
set nocompatible
" Enable type file detection. Vim will be able to try to detect the type of file in use.
filetype on
" Enable plugins and load plugin for the detected file type.
filetype plugin on
" Load an indent file for the detected file type.
filetype indent on
filetype plugin indent on
" Turn syntax highlighting on.
syntax on
syntax enable
" Add numbers to each line on the left-hand side.
set number
" Highlight cursor line underneath the cursor horizontally.
" set cursorline
" define plugins to use (vim-plug)
"call plug#begin()
"Plug 'lervag/vimtex'
"call plug#end()
" config for vimtex
" Or with a generic interface:
"let g:vimtex_view_general_viewer = 'okular'
"let g:vimtex_view_general_options = '--unique file:@pdf\#src:@line@tex'
"let g:vimtex_compiler_method = 'lualatex'

@ -0,0 +1,25 @@
source $HOME/.antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo (robbyrussell's oh-my-zsh).
antigen bundle git
antigen bundle pip
antigen bundle docker-compose
antigen bundle command-not-found
antigen bundle copybuffer
antigen bundle history
antigen bundle emoji
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# Extra zsh completions
antigen bundle zsh-users/zsh-completions
# Load the theme.
antigen theme candy
# Tell antigen that you're done
antigen apply

@ -0,0 +1,14 @@
#!/bin/bash
# variables
BACKUP_PATH="/media/isabell/Elements\ SE/isabell_tuxedo/"
# EXCLUDED_DIRS={}
# backup execution
if [[ -f $BACKUP_PATH ]] && echo "Starting rsync backup of home directory to $BACKUP_PATH"; then
#if [ "$EXCLUDED_DIRS" = "" ]; then
rsync -av --delete $HOME $BACKUP_PATH
#fi
else
echo "Device or location designated for the backup does not exist."
fi
Loading…
Cancel
Save