Dotfiles with the latest changes
This commit is contained in:
52
.zshrc
52
.zshrc
@@ -97,35 +97,42 @@ export DBUS_SESSION_BUS_ADRESS="unix:path=$DBUS_LAUNCHD_SESSION_BUS_SOCKET"
|
||||
|
||||
# on startup
|
||||
|
||||
function colorscript ()
|
||||
{
|
||||
ls ~/.config/colorscripts |sort -R |tail -1 |while read file; do
|
||||
~/.config/colorscripts/$file
|
||||
done
|
||||
}
|
||||
|
||||
eval $(thefuck --alias)
|
||||
eval "$(zoxide init zsh)"
|
||||
pfetch
|
||||
eval "$(zoxide init --cmd cd zsh)"
|
||||
colorscript
|
||||
|
||||
# Terminal Shortcuts
|
||||
|
||||
alias cd="z"
|
||||
|
||||
alias srz="source ~/.zshrc"
|
||||
|
||||
alias s="cmatrix -s"
|
||||
|
||||
alias l="eza --tree --level=2 --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions"
|
||||
|
||||
function ct {
|
||||
clear
|
||||
pfetch
|
||||
colorscript
|
||||
cd
|
||||
}
|
||||
|
||||
function c {
|
||||
clear
|
||||
pfetch
|
||||
colorscript
|
||||
}
|
||||
|
||||
function ls () {
|
||||
function li () {
|
||||
eza --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions $1
|
||||
}
|
||||
|
||||
function z () {
|
||||
zathura $1 &>/dev/null &
|
||||
}
|
||||
|
||||
# Git Schortcuts
|
||||
|
||||
alias gs="git status"
|
||||
@@ -170,24 +177,17 @@ alias Nextcloud="cd ~/Nextcloud"
|
||||
|
||||
# Latex
|
||||
|
||||
function Theoryen {
|
||||
function theory () {
|
||||
mkdir fig
|
||||
mkdir pdf
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_English/letterfonts.tex .
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_English/macros.tex .
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_English/preamble.tex .
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_English/Theory.tex .
|
||||
mv Theory.tex main.tex
|
||||
}
|
||||
|
||||
function Theoryde {
|
||||
mkdir fig
|
||||
mkdir pdf
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_German/letterfonts.tex .
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_German/macros.tex .
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_German/preamble.tex .
|
||||
cp ~/Nextcloud/Layouts/Theory_Notebook_German/Theory.tex .
|
||||
mv Theory.tex main.tex
|
||||
cp ~/.config/nvim/templates/latex/theory/letterfonts.latex .
|
||||
cp ~/.config/nvim/templates/latex/theory/macros.latex .
|
||||
cp ~/.config/nvim/templates/latex/theory/preamble.latex .
|
||||
cp ~/.config/nvim/templates/latex/theory/main.latex .
|
||||
mv main.latex main.tex
|
||||
mv preamble.latex preamble.tex
|
||||
mv macros.latex macros.tex
|
||||
mv letterfonts.latex letterfonts.tex
|
||||
}
|
||||
|
||||
alias Facharbeit="cp ~/Nextcloud/Layouts/Facharbeit/Facharbeit.tex ."
|
||||
@@ -265,5 +265,7 @@ eval "$(oh-my-posh init zsh --config ~/.config/ohmyposh/config.toml)"
|
||||
# Setup fzf key bindings and fuzzy completion
|
||||
eval "$(fzf --zsh)"
|
||||
|
||||
eval "$(/usr/libexec/path_helper)"
|
||||
|
||||
# BAT (better cat)
|
||||
export BAT_THEME=Dracula
|
||||
|
||||
Reference in New Issue
Block a user