dot

packages and services management
Log | Files | Refs | README

commit 83451fbb16890d9601b066c4e0b6f0e66d818a3b
parent e6c6dc4a319279ea6860e5cdf9342a5eef0f29be
Author: josuah <mail@josuah.net>
Date:   Wed, 14 Dec 2016 04:22:00 +0000

Simpler config

Diffstat:
D.config/abduco/shell | 2--
D.config/build/shell | 11-----------
A.config/build/variables | 9+++++++++
D.config/dvtm/shell | 1-
D.config/isync/shell | 1-
D.config/less/shell | 3---
D.config/msmtp/shell | 1-
D.config/tmux/conf | 149-------------------------------------------------------------------------------
D.config/tmux/shell | 5-----
D.config/xorg/shell | 4----
M.local/share/build/iomenu | 2+-
R.config/isync/mbsyncrc -> .mbsyncrc | 0
R.config/msmtp/msmtprc -> .msmtprc | 0
M.profile | 31+++++++++++++++++--------------
R.config/xorg/xinitrc -> .xinitrc | 0
15 files changed, 27 insertions(+), 192 deletions(-)

diff --git a/.config/abduco/shell b/.config/abduco/shell @@ -1,2 +0,0 @@ -export ABDUCO_SOCKET_DIR="$XDG_CACHE_HOME" -export ABDUCO_CMD="$SHELL" diff --git a/.config/build/shell b/.config/build/shell @@ -1,11 +0,0 @@ -# Environment variables for the "build" script package manager - -export PROGRAMS="$HOME/Programs" -export LOCAL="$HOME/.local" - -export PATH="$LOCAL/bin:$PATH" -export CPATH="$LOCAL/include:$CPATH" -export MANPATH="$LOCAL/share/man:$LOCAL/man:$MANPATH" -export LIBPATH="$LOCAL/lib:$LIBPATH" -export LD_RUN_PATH="$LOCAL/lib:$LD_RUN_PATH" -export LD_LIBRARY_PATH="$LOCAL/lib:$LD_LIBRARY_PATH" diff --git a/.config/build/variables b/.config/build/variables @@ -0,0 +1,9 @@ +export PROGRAMS="$HOME/Programs" +export LOCAL="$HOME/.local" + +export PATH="$LOCAL/bin:$PATH" +export CPATH="$LOCAL/include:$CPATH" +export MANPATH="$LOCAL/share/man:$LOCAL/man:$MANPATH" +export LIBPATH="$LOCAL/lib:$LIBPATH" +export LD_RUN_PATH="$LOCAL/lib:$LD_RUN_PATH" +export LD_LIBRARY_PATH="$LOCAL/lib:$LD_LIBRARY_PATH" diff --git a/.config/dvtm/shell b/.config/dvtm/shell @@ -1 +0,0 @@ -export DVTM_EDITOR="$PAGER" diff --git a/.config/isync/shell b/.config/isync/shell @@ -1 +0,0 @@ -alias mbsync='mbsync -c "$XDG_CONFIG_HOME/isync/mbsyncrc"' diff --git a/.config/less/shell b/.config/less/shell @@ -1,3 +0,0 @@ -mkdir -p "$XDG_CACHE_HOME/less" -export LESSHISTFILE="$XDG_CACHE_HOME/less/history" -export LESSKEY="$XDG_CONFIG_HOME/less/lesskey" diff --git a/.config/msmtp/shell b/.config/msmtp/shell @@ -1 +0,0 @@ -alias msmtp='msmtp -C $XDG_CONFIG_DIR/msmtp/msmtprc' diff --git a/.config/tmux/conf b/.config/tmux/conf @@ -1,149 +0,0 @@ -# Simple yet complete tmux configuration file 2016-12-13 -# _ -# |_ __ ., _ _ __ /_ -# | ||| |_| /\ . (_ (_) | | | -# -#_______________________________________________________________________________ - - -# Editing mode - -set -g status-keys vi - - -# Leader - -set -g prefix C-Space -unbind C-b -bind C-Space send-key C-Space - - -# Keybindings -#_______________________________________________________________________________ - - -# Copy mode - -bind -t vi-copy v begin-selection -bind -t vi-copy C-v rectangle-toggle -bind -t vi-copy y copy-pipe 'xclip -i' -bind -n PPage if -F '#{alternate_on}' 'send PPage' 'copy -e; send PPage' - - -# Pane management - -bind -r k select-pane -U -bind -r j select-pane -D -bind -r h select-pane -L -bind -r l select-pane -R -bind -r o select-pane -t :.+ -bind -r C-k resize-pane -U 1 -bind -r C-j resize-pane -D 1 -bind -r C-h resize-pane -L 1 -bind -r C-l resize-pane -R 1 -bind % split -h -c '#{pane_current_path}' -bind '"' split -v -c '#{pane_current_path}' - - -# Window management - -bind -r < swap-window -t - -bind -r > swap-window -t + -bind -r p previous-window -bind -r n next-window -bind -r Tab last-window -bind -r c new-window -c '#{pane_current_path}' -bind -r C new-window - - -# Global tmux state - -bind -n C-z detach -bind r source ~/.config/tmux/conf\; display "Config loaded" - - -# Hooks -#_______________________________________________________________________________ - - -# Refresh status line -set-hook -g after-select-pane 'refresh-client -S' -set-hook -g after-select-window 'refresh-client -S' -set-hook -g after-select-window 'refresh-client -S' -set-hook -g after-next-window 'refresh-client -S' -set-hook -g after-previous-window 'refresh-client -S' -set-hook -g after-choose-tree 'refresh-client -S' -set-hook -g after-switch-client 'refresh-client -S' -set-hook -g after-delete-buffer 'refresh-client -S' - - -# Options -#_______________________________________________________________________________ - -set -g base-index 1 -set -g pane-base-index 1 -set -g renumber-windows on -set -g display-time 2000 -set -g repeat-time 500 -set -g detach-on-destroy off - - -# Global appearance - -# Messages -set -g message-style bold,fg=red -set -g message-command-style bold,fg=white - -# Display-panes mode -set -g display-panes-colour white -set -g display-panes-active-colour red - -# Clock mode -set -g clock-mode-colour white -set -g clock-mode-style 24 - -# Menus -set -g mode-style bg=white,fg=black - - -# Status - -set -g status-interval 5 - -# Global -set -g status-position top -set -g status-justify left -set -g status-style bg=black,fg=white - -# Left -set -g status-left-length 30 -set -g status-left-style fg=white -set -g status-left "#[fg=black,bg=white] #S #[default] " - -# Right -set -g status-right-length 100 -set -g status-right-style fg=white -set -g status-right "#(status)" - -set -g window-status-separator " " - -# Background windows -set -g window-status-style bold,fg=black -set -g window-status-format " #I #W " - -# Foreground windows -set -g window-status-current-style bold,fg=white -set -g window-status-current-format " #I #W " - -# Urgent windows -set -g window-status-bell-style fg=white,bg=red -set -g window-status-activity-style fg=white,bg=yellow - - -# Borders - -set -g pane-border-style bold,fg=white -set -g pane-active-border-style bold,fg=white -set -g pane-border-status top -set -g pane-border-format \ - "#{?pane_active,#[fg=white],#[fg=black]} #{pane_current_command} " diff --git a/.config/tmux/shell b/.config/tmux/shell @@ -1,5 +0,0 @@ -export TMUX_TMPDIR="$XDG_RUNTIME_DIR/tmux" -mkdir -p "$TMUX_TMPDIR" - -alias tmux='tmux -f "$XDG_CONFIG_HOME/tmux/conf"' -alias t='tmux attach &>/dev/null || tmux new' diff --git a/.config/xorg/shell b/.config/xorg/shell @@ -1,4 +0,0 @@ -export XINITRC="$XDG_CONFIG_HOME"/xorg/xinitrc -export XAUTHORITY="$XDG_RUNTIME_DIR"/xorg/xauthority - -mkdir -p "$XDG_RUNTIME_DIR/xorg" diff --git a/.local/share/build/iomenu b/.local/share/build/iomenu @@ -1,3 +1,3 @@ # Input/Output interactive menu and completion engine. -tar=http://repo.or.cz/iomenu.git/snapshot/927f9c6c293919b7d084201cdc7680bb0dcef16c.tar.gz +tar=http://repo.or.cz/iomenu.git/snapshot/d2db5717c4451611fe1db594ffd8e260e46fa474.tar.gz diff --git a/.config/isync/mbsyncrc b/.mbsyncrc diff --git a/.config/msmtp/msmtprc b/.msmtprc diff --git a/.profile b/.profile @@ -9,29 +9,35 @@ # Prevents to be run twice per session [ "$PROFILE" ] && return 0 || PROFILE=1 +. ~/.config/build/variables + # Environment variables #_______________________________________________________________________________ export ENV="$HOME/.profile" +# mail export NAME='Josuah Demangeon' export EMAIL='mail@josuah.net' export MAIL="$HOME/Mail/INBOX" +# default commands export EDITOR="vim" export ALTERNATE_EDITOR="vi" export VISUAL="$EDITOR" export FCEDIT="$EDITOR" - export PAGER="less" export MANPAGER="$PAGER" +export DVTM_EDITOR="$PAGER" +# xdg base directory export XDG_DATA_HOME="$HOME/.local/share" export XDG_CONFIG_HOME="$HOME/.config" export XDG_CACHE_HOME="$HOME/.cache" export XDG_RUNTIME_DIR="$HOME/.cache" +# prompt export PS1='$( [ $? -eq 0 ] && color=2 || color=1 @@ -47,21 +53,16 @@ export PS2=' > ' export PS3=' > ' -# Software-specific shell alias and variables - -while IFS='' read -r script -do - . "$script" -done << EOF -$(find ~/.config/ -name shell ! -type d) -EOF - - # Aliases #_______________________________________________________________________________ +# coreutils alias l='ls -lh --color' alias la='ls -Alh --color' +alias cl='printf "\033[H\033[2J"' +alias bh='busybox --help' + +# iomenu alias a='io-abduco' alias r='io-run' alias g='io-grep' @@ -70,9 +71,11 @@ alias m='io-man' alias f='find ! -path "*/.git/*" -type f | iomenu' alias d='find ! -path "*/.git/*" -type d | iomenu' alias c='cd "$(d)"' -alias .p='. ~/.profile' -alias cl='printf "\033[H\033[2J"' -alias bh='busybox --help' + +# tmux +alias t='tmux attach &>/dev/null || tmux new' + +# utilities alias myip='curl icanhazip.com' alias lines='find . -name "*.[ch]" | xargs wc -l' diff --git a/.config/xorg/xinitrc b/.xinitrc