Compare commits
6 Commits
e120838f8a
...
4e63427646
Author | SHA1 | Date |
---|---|---|
|
4e63427646 | |
|
6c18587fcf | |
|
8844aead74 | |
|
2ff70f36b5 | |
|
d48954bf81 | |
|
ec41e37b4b |
|
@ -1,6 +0,0 @@
|
||||||
typeset -U path
|
|
||||||
path[1,0]=~/.local/bin
|
|
||||||
|
|
||||||
if [[ -r ${ZDOTDIR:-${HOME}}/.zprofile.local ]]; then
|
|
||||||
. ${ZDOTDIR:-${HOME}}/.zprofile.local
|
|
||||||
fi
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
export EDITOR=vim
|
||||||
|
|
||||||
|
typeset -U path
|
||||||
|
path[1,0]=~/.npm/bin
|
||||||
|
path[1,0]=~/.cargo/bin
|
||||||
|
path[1,0]=~/.local/bin
|
14
.zshrc
14
.zshrc
|
@ -7,6 +7,7 @@ setopt HIST_IGNORE_SPACE
|
||||||
setopt INTERACTIVE_COMMENTS
|
setopt INTERACTIVE_COMMENTS
|
||||||
|
|
||||||
export LESSCOLOR=1
|
export LESSCOLOR=1
|
||||||
|
export LESS='-R'
|
||||||
export PYTHONWARNINGS=default,ignore::ImportWarning
|
export PYTHONWARNINGS=default,ignore::ImportWarning
|
||||||
export NOSE_REDNOSE=1
|
export NOSE_REDNOSE=1
|
||||||
|
|
||||||
|
@ -38,7 +39,7 @@ typeset -U fpath
|
||||||
fpath[1,0]=~/.zsh/functions
|
fpath[1,0]=~/.zsh/functions
|
||||||
|
|
||||||
case $TERM in
|
case $TERM in
|
||||||
*xterm*|rxvt)
|
alacritty|*xterm*|rxvt|screen)
|
||||||
autoload precmd
|
autoload precmd
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
@ -57,12 +58,7 @@ done
|
||||||
autoload -U compinit promptinit
|
autoload -U compinit promptinit
|
||||||
compinit
|
compinit
|
||||||
promptinit
|
promptinit
|
||||||
|
prompt gentoo
|
||||||
|
|
||||||
case "$(. /etc/os-release; echo $ID)" in;
|
gpg-connect-agent /bye
|
||||||
gentoo)
|
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
||||||
prompt gentoo
|
|
||||||
;;
|
|
||||||
centos|redhat|rhel)
|
|
||||||
prompt redhat
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
3
README
3
README
|
@ -1,4 +1,5 @@
|
||||||
Add this line to ~/.zshenv in order to use these ZSH configuration files
|
Add these lines to ~/.zshenv in order to use these ZSH configuration files
|
||||||
without copying/linking them to the "standard" paths:
|
without copying/linking them to the "standard" paths:
|
||||||
|
|
||||||
export ZDOTDIR=${HOME}/.zsh
|
export ZDOTDIR=${HOME}/.zsh
|
||||||
|
source ${ZDOTDIR}/.zshenv
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
virsh qemu-agent-command $1 '{"execute":"guest-network-get-interfaces"}' \
|
virsh qemu-agent-command $1 '{"execute":"guest-network-get-interfaces"}' \
|
||||||
| jq -r '.return | .[] | select(.name=="eth0") | .["ip-addresses"] | map(select(.["ip-address-type"] == "ipv6" and (.["ip-address"]|startswith("fe80")|not)))[0]["ip-address"]'
|
| jq -r '.return | .[] | select(.name!="lo") | .["ip-addresses"] | .[] | .["ip-address"]'
|
||||||
|
|
Reference in New Issue