aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-05-03 23:07:41 +0200
committerDuncaen <mail@duncano.de>2015-05-03 23:07:41 +0200
commitdaca4afc4f0e84762d46d2975e1982f882b0d10f (patch)
tree05085232bbe2fb8feede18ff6dced02f5216a3db
parent66e8bdefa101792a9b3f5b44ad2ca177509af3fc (diff)
downloaddotfiles-daca4afc4f0e84762d46d2975e1982f882b0d10f.tar.gz
new files and changes
-rw-r--r--inputrc3
-rwxr-xr-xinstall.sh6
-rw-r--r--mkshrc40
-rw-r--r--notes.md25
-rw-r--r--stalonetrayrc0
-rw-r--r--vim/settings/mutt.vim5
6 files changed, 66 insertions, 13 deletions
diff --git a/inputrc b/inputrc
new file mode 100644
index 0000000..97141c1
--- /dev/null
+++ b/inputrc
@@ -0,0 +1,3 @@
+$include /etc/inputrc
+set -o vi
+set show-mode-in-prompt on
diff --git a/install.sh b/install.sh
index 6ec5d02..d4c4584 100755
--- a/install.sh
+++ b/install.sh
@@ -15,5 +15,11 @@ ln -sfv $dotfiles/xinitrc /home/$user/.xinitrc
rm -v /home/$user/.mkshrc
ln -sfv $dotfiles/mkshrc /home/$user/.mkshrc
+rm -v /home/$user/.stalonetrayrc
+ln -sfv $dotfiles/stalonetrayrc /home/$user/.stalonetrayrc
+
+rm -v /home/$user/.inputrc
+ln -sfv $dotfiles/inputrc /home/$user/.inputrc
+
# install plugins
# vim +PlugInstall +qall
diff --git a/mkshrc b/mkshrc
index 5fc56a9..f74e5e9 100644
--- a/mkshrc
+++ b/mkshrc
@@ -392,6 +392,10 @@ for p in ~/.etc/bin ~/bin; do
[[ :$PATH: = *:$p:* ]] || PATH=$p:$PATH
done
+function psgrep {
+ ps u `pgrep "$1"`
+}
+
export XBPS_DISTDIR=~/repos/github.com/Duncaen/void-packages
export GOPATH=~/go
export GOBIN=$GOPATH/bin
@@ -403,11 +407,22 @@ export LESS="-F -X -R"
alias cls='print -n \\033c'
alias ls="ls --color -F"
+alias wanip='curl ipinfo.io/ip'
+
# git
alias ga='git add'
alias gc='git commit'
+alias gca='git commit --amend'
+alias gp='git pull'
+alias gpr='git pull --rebase'
alias gs='git status -sb'
alias gb='git branch'
+alias gd='git icdiff'
+
+# xbps
+alias xi='sudo xbps-install'
+alias xr='sudo xbps-remove'
+alias xq='xbps-query'
# colors
alias ld='grc -es --colour=auto ld'
@@ -422,21 +437,11 @@ alias df='grc -es --colour=auto df'
alias usv='SVDIR=~/service/ sv'
# Keychain
-# eval `keychain --eval --agents ssh id_rsa`
-if [ -f ~/.keychain/${HOSTNAME}-sh ]; then
- . ~/.keychain/${HOSTNAME}-sh
-fi
-
-function eval_keychain() {
- keychain --agents ssh id_rsa
- if [ -f ~/.keychain/${HOSTNAME}-sh ]; then
- . ~/.keychain/${HOSTNAME}-sh
- fi
-}
+eval `keychain --eval --agents ssh id_rsa`
alias check-updates="sudo sh -c 'cd /var/cache/void-packages && chpst -u voidupdates:voidupdates void-updates -p 20 -r git://github.com/voidlinux/void-packages.git -s /var/cache/void-packages -o /srv/http/void-updates'"
-
-alias keychain=eval_keychain
+alias bt='echo 0 | gdb -batch-silent -ex "run" -ex "set logging overwrite on" -ex "set logging file gdb.bt" -ex "set logging on" -ex "set pagination off" -ex "handle SIG33 pass nostop noprint" -ex "echo backtrace:\n" -ex "backtrace full" -ex "echo \n\nregisters:\n" -ex "info registers" -ex "echo \n\ncurrent instructions:\n" -ex "x/16i \$pc" -ex "echo \n\nthreads backtrace:\n" -ex "thread apply all backtrace" -ex "set logging off" -ex "quit" --args'
+# alias keychain=eval_keychain
#unset LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_IDENTIFICATION LC_MONETARY \
# LC_NAME LC_NUMERIC LC_TELEPHONE LC_TIME
@@ -456,4 +461,13 @@ printf '\033[?1h\033=' >/dev/tty
#
PS1='$(slcp $COLUMNS $?)'
+# If this is an xterm set the title to user@host:dir
+case "$TERM" in
+ dvtm*|xterm*|rxvt*)
+ PS1+='$(echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007")'
+ ;;
+ *)
+ ;;
+esac
+
: place customisations above this line
diff --git a/notes.md b/notes.md
index 3082de5..0cc9120 100644
--- a/notes.md
+++ b/notes.md
@@ -1,3 +1,28 @@
+# Terminal
+
+`CTRL+s` `CTRL+q` Pause/resume output
+
+## dvtm
+
+`MOD=CTRL+g`
+
+`MOD+c` New window
+`MOD+x` Close window
+`MOD+j` `MOD+k` Previous/next window
+`MOD+h` `MOD+l` Decrease/increase master window
+`MOD+e` Open history in $EDITOR
+`MOD+M` Toggle mouse selection mode
+
+# Dwm
+
+`MOD+j` `MOD+k` Previous/next window
+`MOD+h` `MOD+l` Decrease/increase master window
+`MOD+Return` Switch master window
+`MOD+Shift+Return` Open new terminal window
+`MOD+p` Start dmenu
+`MOD+Tab` Switch between current/last tag
+
+# Vim
## CtrlP
diff --git a/stalonetrayrc b/stalonetrayrc
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/stalonetrayrc
diff --git a/vim/settings/mutt.vim b/vim/settings/mutt.vim
new file mode 100644
index 0000000..8485fe1
--- /dev/null
+++ b/vim/settings/mutt.vim
@@ -0,0 +1,5 @@
+au BufRead /tmp/mutt-* set tw=72
+
+augroup filetypedetect
+ autocmd BufRead,BufNewFile *mutt-* setfiletype mail
+augroup END