diff options
author | filip <“filip.rabiega@gmail.com”> | 2025-02-10 11:57:31 +0100 |
---|---|---|
committer | filip <“filip.rabiega@gmail.com”> | 2025-02-10 11:57:31 +0100 |
commit | 167e1ad6d641d14a812077bbdb3c6b7c8fdcdef9 (patch) | |
tree | e2501f73442651fb1f633b334693222e61e03465 | |
parent | 0b1ca6b5bbe18f7c879aaf9b0ebcf8a731a5a012 (diff) | |
download | dotfiles-167e1ad6d641d14a812077bbdb3c6b7c8fdcdef9.tar.gz dotfiles-167e1ad6d641d14a812077bbdb3c6b7c8fdcdef9.tar.bz2 dotfiles-167e1ad6d641d14a812077bbdb3c6b7c8fdcdef9.zip |
updated dotfiles
-rw-r--r-- | .bashrc | 5 | ||||
-rw-r--r-- | .newsboat/cache.db | bin | 1716224 -> 1740800 bytes | |||
-rw-r--r-- | .newsboat/config | 4 | ||||
-rw-r--r-- | .newsboat/history.cmdline | 1 | ||||
-rw-r--r-- | .vimrc | 19 |
5 files changed, 24 insertions, 5 deletions
@@ -113,17 +113,18 @@ fi set -o vi -export LS_OPTIONS='-la --color=auto' +export LS_OPTIONS='-lha --color=auto' alias ls='ls $LS_OPTIONS' alias r='ranger' +alias obs='nohup /usr/bin/obsidian &' alias vrc='vim ~/.vimrc' alias brc='vim ~/.bashrc && source $_' -alias npasswd='tr -dc A-Za-z0-9 </dev/urandom | head -c 13; echo' alias cts='ssh root@rabiega.xyz' alias ctg='ssh git@rabiega.xyz' alias nb='newsboat' alias nb-add='cat >> ~/.newsboat/urls << EOF' alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME" +alias obsidian="/usr/bin/git --git-dir=$HOME/obsidian --work-tree=$HOME/obsidian" groffe(){ groff -e $1.ms -ms -Tpdf > $1.pdf diff --git a/.newsboat/cache.db b/.newsboat/cache.db Binary files differindex d133863..b558bcd 100644 --- a/.newsboat/cache.db +++ b/.newsboat/cache.db diff --git a/.newsboat/config b/.newsboat/config index 915eb5e..1cabc83 100644 --- a/.newsboat/config +++ b/.newsboat/config @@ -4,8 +4,8 @@ max-items 50 # externel browser browser firefox -macro m set browser "/usr/local/bin/mpv %u"; open-in-browser ; set browser "/usr/local/bin/w3m %u" -macro l set browser "/usr/local/bin/firefox %u"; open-in-browser ; set browser "/usr/local/bin/w3m %u" +macro m set browser "/usr/bin/mpv %u"; open-in-browser ; set browser "/usr/local/bin/w3m %u" +macro l set browser "/usr/bin/firefox %u"; open-in-browser ; set browser "/usr/local/bin/w3m %u" # unbind keys unbind-key ENTER diff --git a/.newsboat/history.cmdline b/.newsboat/history.cmdline index b60ba88..81da3bd 100644 --- a/.newsboat/history.cmdline +++ b/.newsboat/history.cmdline @@ -1,3 +1,4 @@ q !vim .newsboat/config q +q @@ -12,31 +12,48 @@ set laststatus=0 set noshowcmd set nocompatible set autoindent -set nocindent +set cindent set smartindent +set nowrap execute pathogen#infect() syntax on +filetype plugin on filetype plugin indent on " Automatically updates server after server files have been modified autocmd BufWritePost ~/website/*.html !bash ~/.local/bin/update_website autocmd BufWritePost ~/website/*.css !bash ~/.local/bin/update_website +" Automatically use black on a Python file +autocmd BufWritePost *.py !black % + " Automatically source .vimrc after saving autocmd BufWritePost ~/.vimrc source $MYVIMRC +"Automatically source .inputrc after saving +autocmd BufWritePost ~/.inputrc !bind -f ~/.inputrc + " Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position autocmd BufWritePre * let currPos = getpos(".") autocmd BufWritePre * %s/\s\+$//e autocmd BufWritePre * %s/\n\+\%$//e autocmd BufWritePre * cal cursor(currPos[1], currPos[2]) +map <BS> dB +map s o<Esc> +map S o<Esc>k +map Y y$ +map Z <Esc>o<Esc> nnoremap <silent> <F7> :tabnew ~/.vimrc<CR> nnoremap <silent> <F8> :TlistToggle<CR> nnoremap <silent> <F9> :NERDTree<CR> +" Keybindings to simulate system shortcuts +:nnoremap <C-J> "+yy +:nnoremap <C-K> <ESC>"+p + inoremap <Space><Space> <Esc>/<++><CR>"_c4l " show existing tab with 4 spaces width |