From 8484c97f8d1a94f51524665e14fdb4977899a9a5 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 15 Nov 2024 12:34:22 -0300 Subject: [PATCH] adding base server dotfiles --- .oh-my-zsh | 1 + .vim/.netrwhist | 4 +++ .vim/bundle/Vundle.vim | 1 + .vim/bundle/lightline.vim | 1 + .vim/bundle/vim | 1 + .vim/bundle/vim-gitbranch | 1 + .vimrc | 67 +++++++++++++++++++++++++++++++++++++++ .zshrc | 58 +++++++++++++++++++++++++++++++++ 8 files changed, 134 insertions(+) create mode 160000 .oh-my-zsh create mode 100755 .vim/.netrwhist create mode 160000 .vim/bundle/Vundle.vim create mode 160000 .vim/bundle/lightline.vim create mode 160000 .vim/bundle/vim create mode 160000 .vim/bundle/vim-gitbranch create mode 100755 .vimrc create mode 100755 .zshrc diff --git a/.oh-my-zsh b/.oh-my-zsh new file mode 160000 index 0000000..d2d5155 --- /dev/null +++ b/.oh-my-zsh @@ -0,0 +1 @@ +Subproject commit d2d5155d41cbe183ef172fef1e83a29d116a5af6 diff --git a/.vim/.netrwhist b/.vim/.netrwhist new file mode 100755 index 0000000..6e3ff8d --- /dev/null +++ b/.vim/.netrwhist @@ -0,0 +1,4 @@ +let g:netrw_dirhistmax =10 +let g:netrw_dirhistcnt =2 +let g:netrw_dirhist_2='/root/docker/qbittorrent/config/qBittorrent/config' +let g:netrw_dirhist_1='/mnt/sd/Movies' diff --git a/.vim/bundle/Vundle.vim b/.vim/bundle/Vundle.vim new file mode 160000 index 0000000..5548a1a --- /dev/null +++ b/.vim/bundle/Vundle.vim @@ -0,0 +1 @@ +Subproject commit 5548a1a937d4e72606520c7484cd384e6c76b565 diff --git a/.vim/bundle/lightline.vim b/.vim/bundle/lightline.vim new file mode 160000 index 0000000..d6a07ea --- /dev/null +++ b/.vim/bundle/lightline.vim @@ -0,0 +1 @@ +Subproject commit d6a07ea376a4b7372aa59e7ea6a051c9470bb4d0 diff --git a/.vim/bundle/vim b/.vim/bundle/vim new file mode 160000 index 0000000..65f4225 --- /dev/null +++ b/.vim/bundle/vim @@ -0,0 +1 @@ +Subproject commit 65f4225e0526516a67d56c8ac09925a209138e53 diff --git a/.vim/bundle/vim-gitbranch b/.vim/bundle/vim-gitbranch new file mode 160000 index 0000000..1a8ba86 --- /dev/null +++ b/.vim/bundle/vim-gitbranch @@ -0,0 +1 @@ +Subproject commit 1a8ba866f3eaf0194783b9f8573339d6ede8f1ed diff --git a/.vimrc b/.vimrc new file mode 100755 index 0000000..62b85d9 --- /dev/null +++ b/.vimrc @@ -0,0 +1,67 @@ +set nohlsearch +set relativenumber +set nocompatible +set smartindent +filetype plugin on +syntax on +vmap "+yi +vmap "+c +vmap c"+p +imap + + +let g:NERDTreeWinPos = "left" +set tabstop=4 +set backspace=indent,eol,start + +command WQ wq +command Wq wq +command W w +command Q q + +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + Plugin 'itchyny/lightline.vim' + Plugin 'itchyny/vim-gitbranch' + Plugin 'VundleVim/Vundle.vim' + Plugin 'dracula/vim' +call vundle#end() + +color dracula + +""" =====> Lightline +set laststatus=2 +let g:lightline = { +\ 'colorscheme': 'one', +\ 'active': { +\ 'left': [ ['mode','paste'], +\ ['gitbranch', 'readonly', 'filename', 'modified'] ] +\ }, +\ 'component_function': { +\ 'gitbranch': 'fugitive#head' +\ }, +\} + +let g:lightline = { + \ 'colorscheme': 'one', + \ 'active': { + \ 'left': [ ['mode', 'paste'], + \ ['fugitive', 'readonly', 'filename', 'modified'] ], + \ 'right': [ [ 'lineinfo' ], ['percent'] ] + \ }, + \ 'component': { + \ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}', + \ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}', + \ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}' + \ }, + \ 'component_visible_condition': { + \ 'readonly': '(&filetype!="help"&& &readonly)', + \ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))', + \ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())' + \ }, + \ 'separator': { 'left': ' ', 'right': ' ' }, + \ 'subseparator': { 'left': ' ', 'right': ' ' } + \ } + +if !has('gui_running') + set t_Co=256 +endif diff --git a/.zshrc b/.zshrc new file mode 100755 index 0000000..d62476f --- /dev/null +++ b/.zshrc @@ -0,0 +1,58 @@ +# 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="agnoster" + + +# 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=(git docker docker-compose zsh-autosuggestions) + +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 + +# 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"