zshrc: remove old stuff and update ps1

This commit is contained in:
Marco Thomas
2022-09-15 23:34:40 +02:00
parent a9cb2e604c
commit 7848b118b9

View File

@@ -15,7 +15,7 @@ GIT="%{$fg[red]%}\$vcs_info_msg_0_"
HOSTN="%{$fg[yellow]%}%m " HOSTN="%{$fg[yellow]%}%m "
export PROMPT="${HOSTN}${DIR}${GIT} ${ICON}%{$reset_color%} " export PROMPT="${HOSTN}${DIR}${GIT} ${ICON}%{$reset_color%} "
zstyle ':vcs_info:git:*' formats ' %b ' zstyle ':vcs_info:git:*' formats ' (%b )'
# show info in bar # show info in bar
case $TERM in case $TERM in
@@ -50,16 +50,6 @@ alias gg='git grep $1'
alias code='/usr/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland . 2>/dev/null' alias code='/usr/bin/code --enable-features=UseOzonePlatform --ozone-platform=wayland . 2>/dev/null'
# tools # tools
pd() {
# requires https://pypi.org/project/pandoc-include/
pandoc $1.md -o $1.pdf --from markdown --template eisvogel --listings --toc --filter pandoc-include
}
pdp() {
pandoc $1.md -o $1.pdf --from markdown -t beamer --toc
}
ocr() { ocr() {
if [ -z $1 ]; then if [ -z $1 ]; then
echo "Please input a file." echo "Please input a file."