all repos — dotfiles @ bbc578ce86c3a0f400395fe0c5ac80a2c5be19ab

my *nix dotfiles

ksh (and other things): Add my own 'j'

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Mon, 25 May 2020 20:57:23 +0530
commit

bbc578ce86c3a0f400395fe0c5ac80a2c5be19ab

parent

0b1f521d11bab95239649f0c3a47014eb0ef7cbc

5 files changed, 27 insertions(+), 2 deletions(-)

jump to
M home/.vimrchome/.vimrc

@@ -10,6 +10,7 @@ Plug 'jiangmiao/auto-pairs'

Plug 'airblade/vim-gitgutter' Plug 'NerdyPepper/vim-colors-plain', { 'branch': 'duotone' } Plug 'dbeniamine/vim-mail' +Plug 'tpope/vim-surround' " plugins for writing {{{ Plug 'reedes/vim-pencil', { 'for': ['text', 'markdown'] } Plug 'plasticboy/vim-markdown', { 'for': ['text', 'markdown'] }
A ksh/.kshrc.d/30-marks.ksh

@@ -0,0 +1,19 @@

+export MARKPATH=$HOME/.marks + +function mark { + mkdir -p "$MARKPATH"; ln -s "$(pwd)" "$MARKPATH/$1" +} + +function unmark { + rm -i "$MARKPATH/$1" +} + +function marks { + for f in "$MARKPATH"/*; do + printf '%s → %s\n' "$(basename "$f")" "$(readlink "$f")" + done +} + +function j { + cd -P "$MARKPATH/$1" 2>/dev/null || printf '%s\n' "error: no such mark $1" +}
M ksh/.kshrc.d/90-aliases.kshksh/.kshrc.d/90-aliases.ksh

@@ -8,6 +8,7 @@ alias gl="git log --oneline --decorate --graph"

alias ls="colorls -G" alias vim="nvim" alias ..="cd .." +alias m="nail" socks() { pkill ssh
M ssh/configssh/config

@@ -14,3 +14,7 @@ User nerdypepper

IdentityFile ~/.ssh/id_rsa Port 443 +Host salad + Hostname 192.168.0.108 + User pi +
M weechat/weechat.confweechat/weechat.conf

@@ -382,8 +382,8 @@

[layout] default.buffer = "core;weechat;1" default.buffer = "irc;server.freenode;2" -default.buffer = "irc;freenode.#aerc;3" -default.buffer = "irc;freenode.#cmpwn;4" +default.buffer = "irc;freenode.#cmpwn;3" +default.buffer = "irc;freenode.##cwm;4" default.buffer = "irc;freenode.#kisslinux;5" default.buffer = "irc;freenode.#lobsters;6" default.buffer = "irc;freenode.#openbsd;7"