move zsh into its own dir

This commit is contained in:
Michael Zhang 2020-06-15 03:54:40 -05:00
parent 5b548acd49
commit 0a07ddcf95
5 changed files with 13 additions and 9 deletions

View file

@ -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

View file

View file

@ -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 }

View file

@ -0,0 +1,2 @@
source_if_exists() { test -f $1 && source $1 }

View file

@ -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