dot

packages and services management
Log | Files | Refs | README

commit 2b1e9d4848771624f0e8bccecde354b7599748c0
parent 1de51814f0b466d4c4d9967767812aee275a8fb8
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Mon,  7 Aug 2017 00:46:00 +0200

ssh/.ssh/config: keys are on /mnt/ssh

Diffstat:
Mshell/bin/l | 11++++-------
Ashell/bin/pgrep | 3+++
Assh/.ssh/config | 5+++++
3 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/shell/bin/l b/shell/bin/l @@ -1,16 +1,13 @@ cd "${1:-.}" || exit 1 -printf -- '%s/ \n\n' "$PWD" +printf '%s/ ' "$PWD" -[ -d "$1" ] && printf '%s' +git rev-parse 2> /dev/null && git status -s --branch || printf '\n' + +printf '\n' { ls -p | grep '/$' ls -F | grep -v '/$' } | column -if git rev-parse 2> /dev/null -then - printf '\n' - git status -s --branch -fi diff --git a/shell/bin/pgrep b/shell/bin/pgrep @@ -0,0 +1,3 @@ +find /proc/ -mindepth 2 -maxdepth 2 -name cmdline | +xargs grep -El "$1" 2> /dev/null | +sed -rn 's|^/proc/([0-9]*)/cmdline|\1| p' diff --git a/ssh/.ssh/config b/ssh/.ssh/config @@ -0,0 +1,5 @@ +host git.nixers.net + identityfile /mnt/ssh/git.nixers.net.key + +host repo.or.cz + identityfile /mnt/ssh/repo.or.cz.key