diff --git a/zsh/.p10k.zsh b/zsh/.p10k.zsh index 4078084..2fabb84 100644 --- a/zsh/.p10k.zsh +++ b/zsh/.p10k.zsh @@ -916,6 +916,8 @@ # can slow down prompt by 1-2 milliseconds, so it's better to keep it turned off unless you # really need it. typeset -g POWERLEVEL9K_DISABLE_HOT_RELOAD=true + + [[ "$wsl" == "Microsoft" ]] && typeset -g POWERLEVEL9K_DISABLE_GITSTATUS=true } (( ${#p10k_config_opts} )) && setopt ${p10k_config_opts[@]} diff --git a/zsh/.zshrc b/zsh/.zshrc index 7e47fb4..3ff0e67 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -14,8 +14,7 @@ bashcompinit for file in $ZDOTDIR/libs/*.zsh; do source "$file"; done for file in $ZDOTDIR/plgs/*.zsh; do source "$file"; done +[[ -f $ZDOTDIR/.localrc.zsh ]] && source $ZDOTDIR/.localrc.zsh [[ -f $ZDOTDIR/.p10k.zsh ]] && source $ZDOTDIR/.p10k.zsh source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh - -[[ -f $ZDOTDIR/.localrc.zsh ]] && source $ZDOTDIR/.localrc.zsh diff --git a/zsh/exports.zsh b/zsh/exports.zsh index b26c9a5..b0491f5 100644 --- a/zsh/exports.zsh +++ b/zsh/exports.zsh @@ -15,3 +15,4 @@ export path=($path $GEM_HOME/bin) #stuff export os=$(grep -E "^ID=" /etc/*release | cut -d= -f2) +export wsl=$(uname -r | cut -d'-' -f3) diff --git a/zsh/libs/completion.zsh b/zsh/libs/completion.zsh index 807b753..5cb612a 100644 --- a/zsh/libs/completion.zsh +++ b/zsh/libs/completion.zsh @@ -38,7 +38,7 @@ zstyle ':completion:*:cd:*' tag-order local-directories directory-stack path-dir zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' cache-path "$HOME/.cache/zsh/compcache/" -zstyle ':completion:*:*:*:users' ignored-patterns adm amanda apache at avahi avahi-autoipd backup beaglidx bin bitwarden_rs cacti canna clamav ceph colord consul daemon dbus distcache dnsdist dnsmasq dovecot eeleater elasticsearch fax flaskdemo ftp games gdm git gitea gkrellmd gluster gopher gophernicus gnats hacluster haldaemon halt hsqldb http ident irc junkbust kdm kibana ldap list logstash lp lxd mail mailman mailnull man mattermost messagebus mldonkey mongodb mxisd mysql nagios named netdata netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn operator pcap polkitd postfix postgres powerdns privoxy proxy pulse prosody puppet pvm quagga radvd redis rpc rpcuser rpm rtkit root scard shutdown squid sshd statd svn synapse sync sys systemd-coredump systemd-journal-remote systemd-network systemd-resolve systemd-timesync teamspeak tftp turnserver usbmux unbound uucp uuidd vault vcsa webvirtmgr wildfly wwwrun www-data xfs youtrack zabbix-agent zabbix-server '_*' +zstyle ':completion:*:*:*:users' ignored-patterns adm amanda apache at avahi avahi-autoipd backup beaglidx bin bitwarden_rs cacti canna clamav ceph colord consul daemon dbus distcache dnsdist dnsmasq dovecot eeleater elasticsearch fax flaskdemo ftp games gdm git gitea gkrellmd gluster gopher gophernicus gnats hacluster haldaemon halt hsqldb http ident irc junkbust kdm kibana landscape ldap list lldpd logstash lp lxd mail mailman mailnull man mattermost messagebus mldonkey mongodb mxisd mysql nagios named netdata netdump news nfsnobody nobody nscd ntp nut nweger nx obsrun openvpn operator pcap pcp polkitd pollinate postfix postgres powerdns privoxy proxy pulse prosody puppet pvm quagga radvd redis rpc rpcuser rpm rtkit root scard shutdown squid sshd statd svn synapse sync sys syslog systemd-coredump systemd-journal-remote systemd-network systemd-resolve systemd-timesync tcpdump teamspeak tftp tss turnserver usbmux unbound uucp uuidd vault vcsa webvirtmgr wildfly wwwrun www-data xfs youtrack zabbix-agent zabbix-server zabbix zerotier-one zerotier '_*' zstyle '*' single-ignored show