dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

commit a3f820a46120dfdf1180702e1af59486615c0402
parent b0fd058e07ce61239726d7f9703a0a731f26cdb2
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 25 Feb 2021 16:23:04 +0000

changes

Diffstat:
Mzsh/.zsh/colored-man-pages.zsh | 11+++++++----
Mzsh/.zsh/environment.zsh | 1+
Mzsh/.zsh/functions/chpwd_auto_cd | 2+-
Mzsh/.zsh/functions/mm | 3++-
Mzsh/.zsh/prompt.zsh | 11++++++++---
Mzsh/.zsh/security.zsh | 2+-
6 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/zsh/.zsh/colored-man-pages.zsh b/zsh/.zsh/colored-man-pages.zsh @@ -1,9 +1,12 @@ # COLOURED MAN PAGES # source: https://github.com/imkira/dotfiles/blob/master/.zsh/colored-man-pages.zsh -export LESS_TERMCAP_mb=$'\E[01;31m' -export LESS_TERMCAP_md=$'\E[01;38;5;74m' +export LESS_TERMCAP_mb=$'\E[0;31m' +#export LESS_TERMCAP_md=$'\E[01;38;5;74m' +export LESS_TERMCAP_md=$'\E[0;33m' export LESS_TERMCAP_me=$'\E[0m' export LESS_TERMCAP_se=$'\E[0m' -export LESS_TERMCAP_so=$'\E[38;33;246m' +#export LESS_TERMCAP_so=$'\E[38;33;246m' +export LESS_TERMCAP_so=$'\E[1;35m' export LESS_TERMCAP_ue=$'\E[0m' -export LESS_TERMCAP_us=$'\E[04;38;5;146m' +#export LESS_TERMCAP_us=$'\E[04;38;5;146m' +export LESS_TERMCAP_us=$'\E[1;32m' diff --git a/zsh/.zsh/environment.zsh b/zsh/.zsh/environment.zsh @@ -5,6 +5,7 @@ # paths export PATH=$PATH:$HOME/bin:/usr/local/bin:$HOME/.gem/ruby/2.6.0/bin +export GOPATH=$HOME/src/go # preferred editor for local and remote sessions export EDITOR=vim diff --git a/zsh/.zsh/functions/chpwd_auto_cd b/zsh/.zsh/functions/chpwd_auto_cd @@ -1,2 +1,2 @@ emulate -L zsh -ls -lA --color=auto +ls -lAhF --color=auto diff --git a/zsh/.zsh/functions/mm b/zsh/.zsh/functions/mm @@ -1,2 +1,3 @@ emulate -L zsh -mpv --audio-device=pulse/1 ytdl://ytsearch10:"$@" +#mpv --audio-device=pulse/1 ytdl://ytsearch10:"$@" +mpv ytdl://ytsearch10:"$@" diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh @@ -48,6 +48,10 @@ GIT_PROMPT() { return fi ref=$(git name-rev --name-only HEAD | sed 's!remotes/!!' 2> /dev/null) + if [[ ${ref} == "tags"* ]] ; then + branch=$(git branch | grep -e "^*" | tr -d "*") + ref="${branch/ /} ${ref}" + fi dirty="" && [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && dirty=$ICO_DIRTY stat=$(git status | sed -n 2p) case "$stat" in @@ -69,7 +73,7 @@ GIT_PROMPT() { echo "${COLOR_NORMAL}─["${ref}${dirty}${stat}"]" ;; tiny) - echo "%F{magenta} [%F{yellow}"${ref}${dirty}${stat}"%F{magenta}]" + echo "%F{5} [%F{13}"${ref}${dirty}${stat}"%F{5}]" ;; *) echo "${USER_LEVEL}─[${COLOR_NORMAL}"${ref}${dirty}${stat}"${USER_LEVEL}]" @@ -93,8 +97,9 @@ PROMPT='${USER_LEVEL}[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT)── - %f' ;; # tiny tiny) -PROMPT='${COLOR_NORMAL} % : ' -RPROMPT='%~ $(GIT_PROMPT) %F{magenta}${HOSTNAME}${COLOR_NORMAL}' +PROMPT='%F{3} %%${COLOR_NORMAL} ' +RPROMPT='%F{15}%~ $(GIT_PROMPT) %F{8}${HOSTNAME}${COLOR_NORMAL}' +;; ;; # classic *) diff --git a/zsh/.zsh/security.zsh b/zsh/.zsh/security.zsh @@ -1,6 +1,6 @@ # SECURITY # av aliases -alias checkrootkits="sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --check" +alias checkrootkits="sudo rkhunter --update; sudo rkhunter --propupd; sudo rkhunter --sk --check" alias checkvirus="clamscan --recursive=yes --infected /home" alias updateantivirus="sudo freshclam"