Updated zsh config, added xresources

Signed-off-by: Nis Wechselberg <enbewe@enbewe.de>
This commit is contained in:
Nis Wechselberg 2017-09-19 13:15:20 +02:00
parent 49b2e2d658
commit c0fc73b9fc
4 changed files with 22 additions and 11 deletions

2
.Xresources Normal file
View file

@ -0,0 +1,2 @@
XTerm*faceName: Hack
XTerm*faceSize: 14

View file

@ -2,5 +2,9 @@ alias ll='ls -la'
alias lh='ls -lah' alias lh='ls -lah'
alias ...='cd ../..' alias ...='cd ../..'
alias cft='rm -r ~/.cache/thumbnails/fail/' alias cft='rm -r ~/.cache/thumbnails/fail/'
alias find_renames='find /media/enbewe/smb/tvshows | grep -v -e "^/media/enbewe/smb/tvshows/[^/]\+/[0-9]\+x[0-9]\+" | grep -E "(mkv|avi)$"' alias startOVPN='sudo systemctl start openvpn@vpn_enbewe_de.service'
alias stopOVPN='sudo systemctl stop openvpn@vpn_enbewe_de.service'
alias genPDF='for i in *.svg; do inkscape -A ${i%.svg}.new.pdf $i; done'
alias cleanPDF='for i in *.new.pdf; do gs -o ${i%.new.pdf}.pdf -sDEVICE=pdfwrite -dColorConversionStrategy=/sRGB -dProcessColorModel=/DeviceRGB $i; rm $i; done'
eval $(thefuck --alias)

View file

@ -34,13 +34,13 @@ cdpath=(.)
# use /etc/hosts and known_hosts for hostname completion # use /etc/hosts and known_hosts for hostname completion
[ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() [ -r /etc/ssh/ssh_known_hosts ] && _global_ssh_hosts=(${${${${(f)"$(</etc/ssh/ssh_known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
[ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=() # [ -r ~/.ssh/known_hosts ] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
[ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=() [ -r /etc/hosts ] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(</etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
[ -r ~/.ssh/config ] && _ssh_config=($(cat ~/.ssh/config | sed -ne 's/Host[=\t ]//p')) || _ssh_config=() [ -r ~/.ssh/config ] && _ssh_config=($(cat ~/.ssh/config | sed -ne 's/Host[=\t ]//p')) || _ssh_config=()
hosts=( hosts=(
"$_global_ssh_hosts[@]" "$_global_ssh_hosts[@]"
"$_ssh_hosts[@]" # "$_ssh_hosts[@]"
"$_etc_hosts[@]" # "$_etc_hosts[@]"
"$_ssh_config[@]" "$_ssh_config[@]"
"$HOST" "$HOST"
localhost localhost
@ -53,13 +53,17 @@ zstyle ':completion::complete:*' cache-path ~/.zsh/cache/
# Don't complete uninteresting users # Don't complete uninteresting users
zstyle ':completion:*:*:*:users' ignored-patterns \ zstyle ':completion:*:*:*:users' ignored-patterns \
adm amanda apache avahi beaglidx bin cacti canna clamav daemon \ _apt adm amanda apache avahi avahi-autoipd backup beaglidx bin \
dbus distcache dovecot fax ftp games gdm gkrellmd gopher \ cacti canna clamav colord daemon dbus distcache dnsmasq dovecot \
hacluster haldaemon halt hsqldb ident junkbust ldap lp mail \ fax ftp games gdm gkrellmd gnats gopher hacluster haldaemon halt \
mailman mailnull mldonkey mysql nagios \ hplip hsqldb ident iodine irc junkbust kernoops ldap lightdm \
named netdump news nfsnobody nobody nscd ntp nut nx openvpn \ list lp mail mailman mailnull man messagebus mldonkey mysql \
operator pcap postfix postgres privoxy pulse pvm quagga radvd \ nagios named netdump news nfsnobody nm-iodine nm-openconnect \
rpc rpcuser rpm shutdown squid sshd sync uucp vcsa xfs nm-openvpn nobody nscd ntp nut nx openvpn operator pcap postfix \
postgres privoxy proxy pulse pvm quagga radvd rpc rpcuser rpm \
rtkit saned shutdown speech-dispatcher squid sshd statd sync sys \
syslog systemd-bus-proxy systemd-network systemd-resolve \
systemd-timesync usbmux uucp uuidd vcsa whoopsie www-data xfs
# ... unless we really want to. # ... unless we really want to.
zstyle '*' single-ignored show zstyle '*' single-ignored show

View file

@ -0,0 +1 @@
export XENVIRONMENT="${HOME}/.Xresources"