Hide README
parent
a2f5840f70
commit
32c2b1a9fa
|
@ -2,7 +2,3 @@
|
|||
|
||||
.dockerfile
|
||||
.dockerignore
|
||||
.drone.yml
|
||||
|
||||
README.md
|
||||
LICENSE
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2021 Ambrose Chua
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
14
.zshrc
14
.zshrc
|
@ -97,6 +97,13 @@ fi
|
|||
setup_term_integration
|
||||
#slower_functions+=( setup_term_integration )
|
||||
|
||||
# term fixes
|
||||
|
||||
alias sudo="sudo TERM=xterm-256color"
|
||||
term_color() {
|
||||
export TERM=xterm-256color
|
||||
}
|
||||
|
||||
# completion
|
||||
|
||||
setup_completion() {
|
||||
|
@ -311,6 +318,8 @@ function theme {
|
|||
setup_prompt
|
||||
}
|
||||
|
||||
# gnupg
|
||||
|
||||
if [[ -f "$(which gpgconf 2>/dev/null)" ]]; then
|
||||
if [[ -z "$SSH_CLIENT" ]] || [[ -z "$SSH_AUTH_SOCK" ]]; then
|
||||
# use gpg agent for SSH if not connected over SSH
|
||||
|
@ -332,14 +341,13 @@ if [[ -f "$(which gpgconf 2>/dev/null)" ]]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
function gpg_kill {
|
||||
gpg_kill() {
|
||||
# just in case
|
||||
gpgconf --kill gpg-agent
|
||||
}
|
||||
function gpg_tty {
|
||||
gpg_tty() {
|
||||
# put gpg pinentry on this tty
|
||||
export GPG_TTY="$(tty)"
|
||||
echo UPDATESTARTUPTTY | gpg-connect-agent >/dev/null 2>&1
|
||||
}
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue