diff --git a/dot_local/scripts/executable_screenshot.sh b/dot_local/scripts/executable_screenshot.sh index 3652565..51a7e14 100644 --- a/dot_local/scripts/executable_screenshot.sh +++ b/dot_local/scripts/executable_screenshot.sh @@ -1,7 +1,7 @@ #!/bin/bash SCREENSHOT=$HOME/.cargo/bin/leanshot # choose some file to save it to -FILE="$HOME/Screenshots/$(date +%Y-%m-%d-%H:%M:%S).png" +FILE="/home/michael/Screenshots/$(date +%Y-%m-%d-%H:%M:%S).png" $SCREENSHOT $1 -o $FILE # optional: copy to clipboard XCLIP=/usr/bin/xclip diff --git a/dot_local/scripts/zsh/.keep b/dot_local/scripts/zsh/.keep new file mode 100644 index 0000000..e69de29 diff --git a/dot_local/scripts/zsh/aliases.zsh b/dot_local/scripts/zsh/aliases.zsh new file mode 100644 index 0000000..cadc876 --- /dev/null +++ b/dot_local/scripts/zsh/aliases.zsh @@ -0,0 +1,7 @@ +alias subl="nvim" +alias rm="garbage put" +alias cm="chezmoi" +alias kill-gpg-agent="gpgconf --kill gpg-agent" + +ced() { chezmoi edit $1 && chezmoi -v apply } +cpush() { chezmoi git add . -- -A && chezmoi git commit -- -m "update" && chezmoi git push } diff --git a/dot_local/scripts/zsh/zsh-prelude.zsh b/dot_local/scripts/zsh/zsh-prelude.zsh new file mode 100644 index 0000000..1e164bb --- /dev/null +++ b/dot_local/scripts/zsh/zsh-prelude.zsh @@ -0,0 +1,2 @@ +source_if_exists() { test -f $1 && source $1 } + diff --git a/dot_zshrc b/dot_zshrc index 7cefe65..518312b 100644 --- a/dot_zshrc +++ b/dot_zshrc @@ -1,3 +1,5 @@ +source $HOME/.local/scripts/zsh/zsh-prelude.zsh + export ZSH="/home/michael/.oh-my-zsh" ZSH_THEME="ys" @@ -35,11 +37,4 @@ if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" fi -# aliases -alias subl="nvim" -alias rm="garbage put" -alias cm="chezmoi" -alias kill-gpg-agent="gpgconf --kill gpg-agent" - -ced() { chezmoi edit $1 && chezmoi -v apply } -cpush() { chezmoi git add . -- -A && chezmoi git commit -- -m "update" && chezmoi git push } +source $HOME/.local/scripts/zsh/aliases.zsh