Compare commits

..

5 Commits

Author SHA1 Message Date
Robert Morrison
bbf21d3b21
Functionify my tempPersist script 2022-02-20 00:11:49 +00:00
Robert Morrison
36fc496ecc
Changes to submodule 2022-02-20 00:09:34 +00:00
Robert Morrison
3244a8d7b8
Just some minor style change 2022-02-20 00:09:08 +00:00
Robert Morrison
376a8bd9c0
Add modeline to keyboard 2022-02-20 00:07:32 +00:00
Robert Morrison
d038098795
Fixed some minor "errors"
Doesn't seem to have affected functionality but some neatness added
since ZDOTDIR is defined.

also fixed minor typo
2022-02-20 00:06:09 +00:00
5 changed files with 34 additions and 10 deletions

@ -1 +1 @@
Subproject commit c11688deafea862d1cc4cde4376f0534f54c28b7
Subproject commit 3ddf1405d81861f1af4455e3716abd230b531a3f

View File

@ -21,5 +21,4 @@ status=$?
[ $status -eq 0 ] && rm ~/.cleanupResult
echo "cleaned tmp"
}
} #CleanTmp

25
functions/tempPersist Normal file
View File

@ -0,0 +1,25 @@
tempPersist() {
ARG=$1
if [ $# -eq 0 ]; then
if [[ -f ~/tmp/KEEPTMP ]]; then
echo "Temp is persistent"
else
echo "Temp will be Deleted"
fi
else
if [[ $ARG = "on" ]]; then
touch ~/tmp/KEEPTMP
echo "Temp is persistent"
elif [[ $ARG = "off" ]]; then
if [[ -f ~/tmp/KEEPTMP ]]; then
rm ~/tmp/KEEPTMP
fi
echo "Temp will be Deleted"
else
echo "on or off only"
fi
fi
}
# vim: set ft=zsh ts=8 sw=4 tw=0 noet :

View File

@ -25,3 +25,4 @@ zle -N history-beginning-search-forward-end \
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" down-line-or-search
[[ -n "${key[Left]}" ]] && bindkey "${key[Left]}" backward-char
[[ -n "${key[Right]}" ]] && bindkey "${key[Right]}" forward-char
# vim: set ft=zsh ts=8 sw=4 tw=0 noet :

13
zshrc
View File

@ -19,13 +19,13 @@ zmodload zsh/complist
## Source Other files
source $HOME/.profile
source ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/aliases
source ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/dir_aliases
source ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/prompt
source ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/keyboard
source ${ZDOTDIR}/aliases
source ${ZDOTDIR}/dir_aliases
source ${ZDOTDIR}/prompt
source ${ZDOTDIR}/keyboard
## Source Functions
source ${XDG_CONFIG_HOME:-$HOME/.config}/zsh/functions/*
source ${ZDOTDIR}/functions/*
## Set option
setopt emacs ## Emacs style keybinds
@ -60,10 +60,9 @@ zle -N edit-command-line
bindkey "^X^E" edit-command-line
## Enable gpg-agent support
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
gpgconf --launch gpg-agent
gpg-gpg-connect-agent /bye
gpg-connect-agent /bye
export GPG_TTY=$(tty)
## Load external stuff