summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-19 10:28:46 +0200
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-06-19 10:28:46 +0200
commit4bf952169c5d94044a6dd3c868c990716d22c58b (patch)
treecf4be99c51db29863f4dff9fd56fe97ed9c151db
parentf0dd78002892ace7c61521c6ceeb6660d391ca70 (diff)
checkpoint
-rwxr-xr-xbin/extra/ytplay4
-rw-r--r--config/essentials/shell/aliases.sh3
-rw-r--r--config/essentials/zsh/.zshrc12
-rw-r--r--config/extra/mutt/.gitignore1
-rw-r--r--config/extra/mutt/muttrc1
5 files changed, 13 insertions, 8 deletions
diff --git a/bin/extra/ytplay b/bin/extra/ytplay
index b5c1a8c..5243364 100755
--- a/bin/extra/ytplay
+++ b/bin/extra/ytplay
@@ -1,2 +1,4 @@
#!/bin/sh
-yt-dlp -o - "$(ytlink)" | mpv -
+url="$(ytlink)"
+herbe "playing: $url" &
+yt-dlp -o - "$url" | mpv -
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh
index 44aa7bc..5db3d65 100644
--- a/config/essentials/shell/aliases.sh
+++ b/config/essentials/shell/aliases.sh
@@ -3,7 +3,8 @@
# The most important one
alias vi='nvim'
-alias cd='z'
+which z > /dev/null 2>&1 &&
+ alias cd='z'
# Zsh specific aliases
if [ $SHELL = "/bin/zsh" ]
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index 6e28602..2b3ae1a 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -7,8 +7,6 @@ then
[ "${TTY%%tty*}" = '/dev/' ] && clear
case "${TTY#/dev/tty}" in
1) exec startx > /dev/null 2>&1 ;;
- 2) exec startdwl > /dev/null 2>&1 ;;
- 3) exec startw > /dev/null 2>&1 ;;
*) false ;;
esac && exit
fi
@@ -18,10 +16,12 @@ autoload -z edit-command-line
zle -N edit-command-line
### Source files
-. $XDG_CONFIG_HOME/zsh/comp.zsh
-. $XDG_CONFIG_HOME/shell/functions.sh
-. $XDG_CONFIG_HOME/shell/aliases.sh
-. $XDG_CONFIG_HOME/zsh/widgets.zsh
+source_it() { [ -f "$1" ] && . "$1" }
+source_it /etc/profile.d/plan9.sh
+source_it $XDG_CONFIG_HOME/zsh/comp.zsh
+source_it $XDG_CONFIG_HOME/shell/functions.sh
+source_it $XDG_CONFIG_HOME/shell/aliases.sh
+source_it $XDG_CONFIG_HOME/zsh/widgets.zsh
# . $XDG_CONFIG_HOME/zsh/prompt.zsh
# . $XDG_CONFIG_HOME/zsh/plugins.zsh
diff --git a/config/extra/mutt/.gitignore b/config/extra/mutt/.gitignore
new file mode 100644
index 0000000..5e46596
--- /dev/null
+++ b/config/extra/mutt/.gitignore
@@ -0,0 +1 @@
+cache \ No newline at end of file
diff --git a/config/extra/mutt/muttrc b/config/extra/mutt/muttrc
new file mode 100644
index 0000000..a5cfa90
--- /dev/null
+++ b/config/extra/mutt/muttrc
@@ -0,0 +1 @@
+source /home/aluc/.config/mutt/configs/raymaekers.luca@gmail.com