move zsh into its own dir
This commit is contained in:
parent
5b548acd49
commit
0a07ddcf95
5 changed files with 13 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SCREENSHOT=$HOME/.cargo/bin/leanshot
|
SCREENSHOT=$HOME/.cargo/bin/leanshot
|
||||||
# choose some file to save it to
|
# 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
|
$SCREENSHOT $1 -o $FILE
|
||||||
# optional: copy to clipboard
|
# optional: copy to clipboard
|
||||||
XCLIP=/usr/bin/xclip
|
XCLIP=/usr/bin/xclip
|
||||||
|
|
0
dot_local/scripts/zsh/.keep
Normal file
0
dot_local/scripts/zsh/.keep
Normal file
7
dot_local/scripts/zsh/aliases.zsh
Normal file
7
dot_local/scripts/zsh/aliases.zsh
Normal 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 }
|
2
dot_local/scripts/zsh/zsh-prelude.zsh
Normal file
2
dot_local/scripts/zsh/zsh-prelude.zsh
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
source_if_exists() { test -f $1 && source $1 }
|
||||||
|
|
11
dot_zshrc
11
dot_zshrc
|
@ -1,3 +1,5 @@
|
||||||
|
source $HOME/.local/scripts/zsh/zsh-prelude.zsh
|
||||||
|
|
||||||
export ZSH="/home/michael/.oh-my-zsh"
|
export ZSH="/home/michael/.oh-my-zsh"
|
||||||
ZSH_THEME="ys"
|
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)"
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# aliases
|
source $HOME/.local/scripts/zsh/aliases.zsh
|
||||||
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 }
|
|
||||||
|
|
Loading…
Reference in a new issue