mirror of
https://github.com/sebaschi/dotfiles.git
synced 2025-11-08 20:14:27 +01:00
Commit after delete on local machine/
This commit is contained in:
commit
248c191f9a
7
README.md
Normal file
7
README.md
Normal file
@ -0,0 +1,7 @@
|
||||
# Some Notes
|
||||
## Use SSH to clone repo
|
||||
git clone git@github.com:sebaschi/dotfiles.git ~/.dotfiles
|
||||
## Symlink files to correct locations
|
||||
ln -s ~/.dotfiles/git/gitconfig ~/.gitconfig
|
||||
ln -s ~/.dotfiles/vim/vimrc ~/.vimrc
|
||||
ln -s ~/.dotfiles/bash/bashrc ~/.bashrc
|
||||
1000
bash/.bash_history
Normal file
1000
bash/.bash_history
Normal file
File diff suppressed because it is too large
Load Diff
0
bash/.bash_history-66458.tmp
Normal file
0
bash/.bash_history-66458.tmp
Normal file
2
bash/.bash_logout
Normal file
2
bash/.bash_logout
Normal file
@ -0,0 +1,2 @@
|
||||
# ~/.bash_logout
|
||||
|
||||
8
bash/.bash_profile
Normal file
8
bash/.bash_profile
Normal file
@ -0,0 +1,8 @@
|
||||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
68
bash/bashrc
Normal file
68
bash/bashrc
Normal file
@ -0,0 +1,68 @@
|
||||
# .bashrc
|
||||
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# User specific environment
|
||||
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
|
||||
then
|
||||
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
|
||||
fi
|
||||
export PATH
|
||||
|
||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
||||
# export SYSTEMD_PAGER=
|
||||
|
||||
# User specific aliases and functions
|
||||
if [ -d ~/.bashrc.d ]; then
|
||||
for rc in ~/.bashrc.d/*; do
|
||||
if [ -f "$rc" ]; then
|
||||
. "$rc"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
unset rc
|
||||
|
||||
source /home/slnopriv/alacritty/extra/completions/alacritty.bash
|
||||
eval "$(starship init bash)"
|
||||
|
||||
# >>> conda initialize >>>
|
||||
# !! Contents within this block are managed by 'conda init' !!
|
||||
__conda_setup="$('/home/slnopriv/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
|
||||
if [ $? -eq 0 ]; then
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "/home/slnopriv/anaconda3/etc/profile.d/conda.sh" ]; then
|
||||
. "/home/slnopriv/anaconda3/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="/home/slnopriv/anaconda3/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
# <<< conda initialize <<<
|
||||
|
||||
# cd to fs23 pids exercises
|
||||
alias cdpex='cd ~/Documents/Education/UniBas/FS23/pids23/exercises/pids_2023/exercises/'
|
||||
|
||||
# cd into nextcloud unibas fs23
|
||||
alias uni23='cd ~/Nextcloud/Documents/Unibas/FS23/'
|
||||
|
||||
#cd into thoc
|
||||
alias thoc='cd ~/Nextcloud/Documents/Unibas/FS23/thoc/'
|
||||
#cd into inetsec
|
||||
alias inetsec='cd ~/Nextcloud/Documents/Unibas/FS23/inetsec/'
|
||||
#cd into os alias
|
||||
alias os='cd ~/Nextcloud/Documents/Unibas/FS23/os/'
|
||||
#cd into pkvps
|
||||
alias pkvps='cd ~/Nextcloud/Documents/Unibas/FS23/pkvps/'
|
||||
#cd into pids
|
||||
alias pids='cd ~/Nextcloud/Documents/Unibas/FS23/pids/'
|
||||
|
||||
#rsync Books from Cloud
|
||||
alias syncbooks='rsync -av ~/Nextcloud/Books/ ~/Books'
|
||||
|
||||
#cd to local uni stuff
|
||||
alias unil='cd ~/Documents/Education/UniBas/FS23'
|
||||
3
git/gitconfig
Normal file
3
git/gitconfig
Normal file
@ -0,0 +1,3 @@
|
||||
[user]
|
||||
email = 74497638+sebaschi@users.noreply.github.com
|
||||
name = Sebastian Lenzlinger
|
||||
114
vim/vimrc
Normal file
114
vim/vimrc
Normal file
@ -0,0 +1,114 @@
|
||||
"Comments in Vimscript start with a `"`.
|
||||
|
||||
" If you open this file in Vim, it'll be syntax highlighted for you.
|
||||
|
||||
" Vim is based on Vi. Setting `nocompatible` switches from the default
|
||||
" Vi-compatibility mode and enables useful Vim functionality. This
|
||||
" configuration option turns out not to be necessary for the file named
|
||||
" '~/.vimrc', because Vim automatically enters nocompatible mode if that file
|
||||
" is present. But we're including it here just in case this config file is
|
||||
" loaded some other way (e.g. saved as `foo`, and then Vim started with
|
||||
" `vim -u foo`).
|
||||
set nocompatible
|
||||
|
||||
" Turn on syntax highlighting.
|
||||
syntax on
|
||||
|
||||
" Disable the default Vim startup message.
|
||||
set shortmess+=I
|
||||
|
||||
" Show line numbers.
|
||||
set number
|
||||
|
||||
" This enables relative line numbering mode. With both number and
|
||||
" relativenumber enabled, the current line shows the true line number, while
|
||||
" all other lines (above and below) are numbered relative to the current line.
|
||||
" This is useful because you can tell, at a glance, what count is needed to
|
||||
" jump up or down to a particular line, by {count}k to go up or {count}j to go
|
||||
" down.
|
||||
set relativenumber
|
||||
|
||||
" Always show the status line at the bottom, even if you only have one window open.
|
||||
set laststatus=2
|
||||
|
||||
" The backspace key has slightly unintuitive behavior by default. For example,
|
||||
" by default, you can't backspace before the insertion point set with 'i'.
|
||||
" This configuration makes backspace behave more reasonably, in that you can
|
||||
" backspace over anything.
|
||||
set backspace=indent,eol,start
|
||||
|
||||
" By default, Vim doesn't let you hide a buffer (i.e. have a buffer that isn't
|
||||
" shown in any window) that has unsaved changes. This is to prevent you from "
|
||||
" forgetting about unsaved changes and then quitting e.g. via `:qa!`. We find
|
||||
" hidden buffers helpful enough to disable this protection. See `:help hidden`
|
||||
" for more information on this.
|
||||
" set hidden
|
||||
|
||||
" This setting makes search case-insensitive when all characters in the string
|
||||
" being searched are lowercase. However, the search becomes case-sensitive if
|
||||
" it contains any capital letters. This makes searching more convenient.
|
||||
set ignorecase
|
||||
set smartcase
|
||||
|
||||
" Enable searching as you type, rather than waiting till you press enter.
|
||||
set incsearch
|
||||
|
||||
" Unbind some useless/annoying default key bindings.
|
||||
nmap Q <Nop> " 'Q' in normal mode enters Ex mode. You almost never want this.
|
||||
|
||||
" Disable audible bell because it's annoying.
|
||||
set noerrorbells visualbell t_vb=
|
||||
|
||||
" Enable mouse support. You should avoid relying on this too much, but it can
|
||||
" sometimes be convenient.
|
||||
set mouse+=a
|
||||
|
||||
" Try to prevent bad habits like using the arrow keys for movement. This is
|
||||
" not the only possible bad habit. For example, holding down the h/j/k/l keys
|
||||
" for movement, rather than using more efficient movement commands, is also a
|
||||
" bad habit. The former is enforceable through a .vimrc, while we don't know
|
||||
" how to prevent the latter.
|
||||
" Do this in normal mode...
|
||||
nnoremap <Left> :echoe "Use h"<CR>
|
||||
nnoremap <Right> :echoe "Use l"<CR>
|
||||
nnoremap <Up> :echoe "Use k"<CR>
|
||||
nnoremap <Down> :echoe "Use j"<CR>
|
||||
" ...and in insert mode
|
||||
inoremap <Left> <ESC>:echoe "Use h"<CR>
|
||||
inoremap <Right> <ESC>:echoe "Use l"<CR>
|
||||
inoremap <Up> <ESC>:echoe "Use k"<CR>
|
||||
inoremap <Down> <ESC>:echoe "Use j"<CR>
|
||||
|
||||
" Highlight cursor line underneath the cursor horizontally
|
||||
set cursorline
|
||||
|
||||
"
|
||||
" Highlight cursor line underneath the cursor vertically
|
||||
set cursorcolumn
|
||||
|
||||
" Show the mode you are on the last line.
|
||||
set showmode
|
||||
|
||||
" Do not let cursor scroll below or above N number of lines when scrolling.
|
||||
set scrolloff=15
|
||||
|
||||
" Enable auto completion menu after pressing TAB.
|
||||
set wildmenu
|
||||
|
||||
" Make wildmenu behave like similar to Bash completion.
|
||||
set wildmode=list:longest
|
||||
|
||||
" There are certain files that we would never want to edit with Vim.
|
||||
" Wildmenu will ignore files with these extensions.
|
||||
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
|
||||
|
||||
" Highlight matching parentheses
|
||||
set showmatch
|
||||
|
||||
" Map semicolon to colon except if double pressed
|
||||
nnoremap <leader>; ;
|
||||
map ; :
|
||||
|
||||
set shiftwidth=4 smarttab
|
||||
set expandtab
|
||||
set tabstop=8 softtabstop=0
|
||||
Loading…
x
Reference in New Issue
Block a user