...
 
Commits (7)
.PHONE: all dotfiles xdg
.PHONY: all dotfiles xdg
all: dotfiles xdg
......
This diff is collapsed.
[Settings]
gtk-application-prefer-dark-theme=1
gtk-key-theme-name=Emacs
gtk-decoration-layout=menu:close
keyserver hkp://jirk5u4osbsr34t5.onion
keyserver hkps://hkps.pool.sks-keyservers.net
#keyserver hkp://keys.gnupg.net
keyserver hkps://keys.openpgp.org
# by using ~ for $HOME used to not work here for parcimonie and other tools
hkp-cacert /home/semente/.gnupg/sks-keyservers.netCA.pem
###+++--- GPGConf ---+++###
use-tor
###+++--- GPGConf ---+++### ter 28 nov 2017 19:59:19 -02
# GPGConf edited this configuration file.
# It will disable options before this marked block, but it will
# never change anything below these lines.
keyserver hkp://zkaan2xfbuxia2wpf7ofnkbz6r5zdbbvxbunvp5g2iebopbfc4iqmbad.onion
# Disabled. I'm currently using GNOME Keyring for SSH
#enable-ssh-support
enable-ssh-support
# do not grab the keyboard
#no-grab
......
......@@ -122,7 +122,7 @@ alias o='_run_or_xdgopen'
alias p='_ps-and-grep'
alias a='_ia-save'
alias u='sudo aptitude update && sudo aptitude -y safe-upgrade && sudo aptitude full-upgrade && sudo apt autoremove'
alias u='sudo apt update && sudo apt -y upgrade && sudo apt full-upgrade && sudo apt autoremove'
alias r="exec $SHELL -l"
alias h=s
......@@ -21,27 +21,39 @@ PATH="$HOME/bin:$HOME/.local/bin:$PATH:/usr/local/games:/usr/games:/usr/local/sb
export PATH="$HOME/.cargo/bin:$PATH"
# golang
export PATH="$HOME/.go/bin:$PATH"
export GOPATH="$HOME/.go"
export GOPATH="$HOME/src/go"
export PATH="$GOPATH/bin:$PATH"
# cp, ln, ...
#export VERSION_CONTROL=numbered
export VERSION_CONTROL=numbered
_gpg_tty () {
# link gpg-agent to the connected terminal (manpage gpg-agent(1))
# link gpg-agent to the connected terminal (manpage gpg-agent(1))
_set_gpg_tty () {
GPG_TTY=$(tty)
export GPG_TTY
}
# if enable-ssh-support is set in your gpg-agent.conf, you also need to tell ssh
# to use gpg-agent
_set_ssh_agent () {
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
export SSH_AUTH_SOCK
fi
}
# if running BASH
if [ -n "$BASH_VERSION" ]; then
_gpg_tty
_set_gpg_tty
_set_ssh_agent
[ -f ~/.bashrc ] && . ~/.bashrc
fi
# if running zsh
if [ -n "$ZSH_VERSION" ]; then
_gpg_tty
_set_gpg_tty
_set_ssh_agent
# Zsh reads ~/.zshrc in all interactive shells, whether they
# are login shells or not, we don't need load ~/.zshrc here
......
......@@ -56,8 +56,7 @@ unsetopt nomatch
# if [[ "${INSIDE_EMACS}" == *"comint"* ]]; then
if [ -n "$INSIDE_EMACS" ]; then
unsetopt zle
PROMPT=" » "
RPROMPT="%B%{$fg[blue]%}%~%{$reset_color%}%B%{$fg[blue]%}\$(_GetGitStatusPS)%{$reset_color%}"
PROMPT=" » ${?##0} "
export PAGER="cat"
else
# set a 8 min timeout policy when not under X
......@@ -70,22 +69,20 @@ else
bindkey -e
# prompt
setopt PROMPT_SUBST
function _GetGitStatusPS() {
git rev-parse --is-inside-work-tree > /dev/null 2>&1
if [ $? -eq 0 ]; then
local gitBranch=$(git symbolic-ref --short HEAD)
local gitBehindAhead=$(git rev-list --count --left-right "@{upstream}"...HEAD 2>/dev/null | tr "\t" "/" | grep -v "^0/0")
local gitModMark=$(! git diff-index --quiet HEAD -- && echo "(*)")
[ -n "$gitBehindAhead" ] && gitModMark="(${gitBehindAhead}${gitModMark})"
echo -n ":${gitBranch}${gitModMark}"
fi
autoload -Uz vcs_info
zstyle ':vcs_info:*' enable git hg
zstyle ':vcs_info:*' get-revision true
zstyle ':vcs_info:*' formats '%.24b..%8.8i '
zstyle ':vcs_info:*' actionformats '%a '
precmd() {
vcs_info
}
setopt PROMPT_SUBST
PROMPT="
%B%{$fg[magenta]%} » %{$reset_color%}%B%{$fg[green]%}%{$reset_color%}"
RPROMPT="%B%{$fg[blue]%}%~%{$reset_color%}%B%{$fg[blue]%}\$(_GetGitStatusPS)%{$reset_color%}"
%B%{$fg[magenta]%} » \${?##0} %{$reset_color%}%B%{$fg[green]%}%{$reset_color%}"
RPROMPT="%B%{$fg[white]%}\${vcs_info_msg_0_}%B%{$fg[blue]%}%~%{$reset_color%}%B%{$reset_color%}"
# more extensive tab completion
autoload -U compinit
......
# upgrade $TERM
set -g default-terminal "tmux-256color"
set -g default-terminal "screen-256color"
# uncomment if you want start tmux as a non-login shell
#set -g default-command /bin/zsh
......@@ -53,32 +53,3 @@ set -g history-limit 32000
# TODO: I don't remember what this is for
#set -g focus-events on
# status bar
set -g status-position bottom
set -g status-bg default
set -g status-fg default
set -g status-interval 4
set -g status-left ''
set -g status-right ''
set -g status-justify centre
# set window split options
set-option -g pane-active-border-fg magenta
set-option -g pane-active-border-bg default
set-option -g pane-border-fg magenta
set-option -g pane-border-bg default
# highlighting the active window in status bar
setw -g window-status-current-bg default
setw -g window-status-current-fg default
setw -g window-status-bg default
setw -g window-status-fg white
setw -g window-status-activity-attr blink
setw -g window-status-activity-bg default
setw -g window-status-activity-fg default
setw -g window-status-bell-attr blink
setw -g window-status-bell-bg default
setw -g window-status-bell-fg default
setw -g window-status-format '#[fg=white] ● '
setw -g window-status-current-format '#[fg=magenta,bold] ● '