diff --git a/config/.local/share/ranger/bookmarks b/config/.local/share/ranger/bookmarks index a1bddec..8c5f873 100644 --- a/config/.local/share/ranger/bookmarks +++ b/config/.local/share/ranger/bookmarks @@ -5,8 +5,8 @@ m:/run/media/tuan a:/home/tuan/Documents/Arbeit l:/home/tuan/Local c:/home/tuan/Documents/CTF/picoCTF -':/home/tuan/.vim/ftplugin t:/home/tuan/Templates w:/home/tuan/workspace_l/Projects k:/home/tuan/Documents/Fachschaft/Berufungskomission q:/home/tuan/.nextcloud/Quick Drop +':/home/tuan/.go/src/github.com/tudattr/favorites_api/requirements diff --git a/config/.ssh/config b/config/.ssh/config index db5c107..aeae120 100644 --- a/config/.ssh/config +++ b/config/.ssh/config @@ -10,6 +10,12 @@ Host helios User infra IdentityFile /mnt/veracrypt1/fse +Host root + HostName 132.252.238.06 + Port 2222 + User root + IdentityFile /mnt/veracrypt1/fse + Host www HostName 132.252.238.16 Port 22 diff --git a/vim/.vim/ftplugin/go.vim b/vim/.vim/ftplugin/go.vim index 440e013..cfa390c 100644 --- a/vim/.vim/ftplugin/go.vim +++ b/vim/.vim/ftplugin/go.vim @@ -4,5 +4,6 @@ imap ;main package mainimport ("fmt")func main() {}< " Compiling map :!clear; go run % -map :!clear; go build %; ./%< -map :!clear; GOOS=windows GOARCH=386 go build -o %<.exe % +map :!clear; go build %; ./%< +map :!clear; go test & detatch +map :!clear; GOOS=windows GOARCH=386 go build -o %<.exe % diff --git a/vim/.vim/ftplugin/markdown.vim b/vim/.vim/ftplugin/markdown.vim new file mode 100644 index 0000000..429cdd0 --- /dev/null +++ b/vim/.vim/ftplugin/markdown.vim @@ -0,0 +1,10 @@ +" setlocal spell spelllang=de_de +" set nospell + + + +" Begin Shortcuts + +" Compilation +map :!pandoc % -o %pdf --from gfm --template $HOME/Templates/Pandoc/eisvogel --listings &>/dev/null & disown +map :!evince %pdf &>/dev/null & disown diff --git a/vim/.vim/ftplugin/md.vim b/vim/.vim/ftplugin/md.vim deleted file mode 100644 index 638e184..0000000 --- a/vim/.vim/ftplugin/md.vim +++ /dev/null @@ -1,10 +0,0 @@ -" setlocal spell spelllang=de_de -" set nospell - - - -" Begin Shortcuts - -" Compilation -map :!pandoc % --pdf-engine=xelatex -o %pdf &>/dev/null & disown -map :!evince %pdf &>/dev/null & disown diff --git a/vim/.vim/ftplugin/python.vim b/vim/.vim/ftplugin/python.vim index a7225a4..caa093a 100644 --- a/vim/.vim/ftplugin/python.vim +++ b/vim/.vim/ftplugin/python.vim @@ -5,7 +5,7 @@ imap ifm if__name__=='__main__': " Compiling -map :!clear; python % +map :!clear; python % " Use the below highlight group when displaying bad whitespace is desired. highlight BadWhitespace ctermbg=red guibg=red diff --git a/vim/.vim/ftplugin/sh.vim b/vim/.vim/ftplugin/sh.vim index 100ac38..0c98620 100644 --- a/vim/.vim/ftplugin/sh.vim +++ b/vim/.vim/ftplugin/sh.vim @@ -1,3 +1,3 @@ " Compilation -map :!clear&./% +map :!clear&./% diff --git a/vim/.vim/ftplugin/tex.vim b/vim/.vim/ftplugin/tex.vim index bf2e638..15f5683 100644 --- a/vim/.vim/ftplugin/tex.vim +++ b/vim/.vim/ftplugin/tex.vim @@ -24,7 +24,7 @@ vnoremap "" da"`""' ":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk - ":command! -complete=file -nargs=1 Rpdf :r !pdftotext -nopgbrk - | fmt -csw78 " Compilation -noremap :!latexmk -pdf -silent "%" &>/dev/null & disown :redraw! -noremap :!latexmk -c &>/dev/null & disown +noremap :!latexmk -pdf -silent "%" &>/dev/null & disown :redraw! +noremap :!latexmk -c &>/dev/null & disown noremap :!evince %pdf &>/dev/null & disown diff --git a/vim/.vim/plugin/remaps.vim b/vim/.vim/plugin/remaps.vim index 2722c55..8369681 100644 --- a/vim/.vim/plugin/remaps.vim +++ b/vim/.vim/plugin/remaps.vim @@ -16,11 +16,11 @@ nmap 0 ^ nmap ' ` " Diaeresis for e.g. german -inoremap a" ä -inoremap o" ö -inoremap u" ü -inoremap A" Ä -inoremap U" Ü -inoremap O" Ö -inoremap s" ß -inoremap e" € +inoremap a ä +inoremap o ö +inoremap u ü +inoremap A Ä +inoremap U Ü +inoremap O Ö +inoremap s ß +inoremap e € diff --git a/zsh/.zshrc b/zsh/.zshrc index cbb2e6d..cafcd91 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -1,12 +1,10 @@ # Paths export ZSH="/home/tuan/.oh-my-zsh" export PATH="$PATH:$HOME/go/bin:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.dotnet/tools" -export LEDGER_FILE="/home/tuan/Documents/Finanzen/Ledger/MyBudget.ledger" export DOTNET_CLI_TELEMETRY_OPTOUT=1 export DOTNET_ROOT=/opt/dotnet # Alias -alias gowinbuild='GOOS=windows GOARCH=amd64 go build' alias q="exit" alias ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"' alias xsel='xsel -ib' @@ -23,8 +21,5 @@ plugins=( # History HISTORY_IGNORE='sudo veracrypt *|veracrypt *' -transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer \n ... | transfer ">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://share.mos4.de/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://share.mos4.de/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://share.mos4.de/$file_name"|tee /dev/null;fi;} - # Source source $ZSH/oh-my-zsh.sh -