dot

packages and services management
Log | Files | Refs | README

commit 430b516438926569f7845292ecdc2817d1f9ab12
parent afcf307e5a6cce59445ad76fce6263afc245bb36
Author: josuah <mail@josuah.net>
Date:   Wed, 31 Aug 2016 11:48:25 +0200

install.sh: Fixed mail setup

Diffstat:
Minstall.sh | 1+
Misync/.mbsyncrc | 2+-
Aless/build.sh | 3+++
Mshell/.profile | 75++++++++++++++++++++++++++++++++-------------------------------------------
Ashell/.profile.swp | 0
5 files changed, 37 insertions(+), 44 deletions(-)

diff --git a/install.sh b/install.sh @@ -3,6 +3,7 @@ pwd="$(cd "$(dirname "$0")" && pwd)" Sync="$HOME/Sync" vim_bundle="$HOME/.vim/bundle" +mail='mail@josuah.net' host='mail.gandi.net' NL=' ' diff --git a/isync/.mbsyncrc b/isync/.mbsyncrc @@ -1,6 +1,6 @@ IMAPAccount gandi Host mail.gandi.net -User jd@ssh.bio +User mail@josuah.net PassCmd "sed -rn 's/password *(.*)/\\1/ p' \"$HOME/.netrc\"" IMAPStore gandi-remote diff --git a/less/build.sh b/less/build.sh @@ -0,0 +1,3 @@ +# The great GNU Less + +tar=http://www.greenwoodsoftware.com/less/less-481.tar.gz diff --git a/shell/.profile b/shell/.profile @@ -35,7 +35,7 @@ export ALTERNATE_EDITOR='vi' export DVTM_EDITOR="$EDITOR" export VISUAL="$EDITOR" export FCEDIT="$EDITOR" -export PAGER='less' +export PAGER='less -MFNIR' export BROWSER='retawq' export FILTER='peax' @@ -65,13 +65,16 @@ alias l='ls -F --color' alias ll='l -lh' alias la='l -A' alias lla='l -Alh' -alias p='pwd' alias weather='curl -4 wttr.in' alias lines='find . -name "*.[ch]" | xargs wc -l' alias myip='curl icanhazip.com' alias a='attach' alias r='run' -alias v="run $VISUAL" +alias v='run $VISUAL' +alias p='$PAGER' +alias f='find . -type f ! -path "*/.git/*" | fzy' +alias d='find . -type d ! -path "*/.git/*" | fzy' +alias c='cd "$(d)"' # FUNCTIONS @@ -107,30 +110,15 @@ ps1() printf "\n%s$ " "${abduco#0}" } -d() -{ - find "${1-.}" -type d ! -path '*/.git/*' | fzy -} - -f() -{ - find "${1-.}" -type f ! -path '*/.git/*' | fzy -} - -c() -{ - [ $# -eq 0 ] && cd "$(d)" || cd "$1" -} - h() { - local cmd - for field in $@ - do cmd="$cmd $field" + do local cmd="$cmd $field" done - $cmd 2>&1 | more + $cmd 1>&2 + less -MFNIR <&3 + tee <&3 } light() @@ -145,25 +133,25 @@ mnt() # Mount /dev/sdb1 or $1 in /mnt sudo mount -o uid=$USER -o rw ${1-/dev/sdb1} ${2-/mnt} } - extract() - { - case "$1" in - *.tar.bz2) tar xvjf "$1" ;; - *.tar.gz ) tar xvzf "$1" ;; - *.bz2 ) bunzip2 "$1" ;; - *.rar ) unrar x "$1" ;; - *.gz ) gunzip "$1" ;; - *.tar ) tar xvf "$1" ;; - *.tbz2 ) tar xvjf "$1" ;; - *.tgz ) tar xvzf "$1" ;; - *.zip ) unzip "$1" ;; - *.Z ) uncompress "$1" ;; - *.7z ) 7z x "$1" ;; - *.xz ) xz -d "$1" ;; - *.deb ) ar vx "$1" ;; - * ) printf 'extract: Unknown archive type\n';; - esac - } +extract() +{ + case "$1" in + *.tar.bz2) tar xvjf "$1" ;; + *.tar.gz ) tar xvzf "$1" ;; + *.bz2 ) bunzip2 "$1" ;; + *.rar ) unrar x "$1" ;; + *.gz ) gunzip "$1" ;; + *.tar ) tar xvf "$1" ;; + *.tbz2 ) tar xvjf "$1" ;; + *.tgz ) tar xvzf "$1" ;; + *.zip ) unzip "$1" ;; + *.Z ) uncompress "$1" ;; + *.7z ) 7z x "$1" ;; + *.xz ) xz -d "$1" ;; + *.deb ) ar vx "$1" ;; + * ) printf 'extract: Unknown archive type\n';; + esac +} # # Remove spaces and other nasty characters from $1 recursively @@ -242,8 +230,9 @@ coal="\ if [ "$TERM" = 'linux' ] then - printf "$coal" # Theme - printf '\033[?6;c' # Cursor style + printf "$coal" # Theme + printf '\033[?6;c' # Cursor style + setfont Uni2-VGA16.psf # Font fi diff --git a/shell/.profile.swp b/shell/.profile.swp Binary files differ.