From d5b764661106759ac29d3e4b50092de9fde28788 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sun, 16 Feb 2020 14:21:42 +0100 Subject: [PATCH] Add make recursive dir alias, fix tmux alias Fixes tmux session function alias and renames function to be a bit more descriptive. Added basic `md` alias to recursively `mkdir` directories. --- sh/.config/sh/alias | 2 ++ tmux/.config/sh/alias.d/tmux.sh | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/sh/.config/sh/alias b/sh/.config/sh/alias index cf6e588..0a6cb5b 100644 --- a/sh/.config/sh/alias +++ b/sh/.config/sh/alias @@ -31,6 +31,8 @@ alias ..="cd .." alias ...="cd ../.." alias ~="cd ~" +alias md="mkdir -p" + # clear my screen alias cl="clear" diff --git a/tmux/.config/sh/alias.d/tmux.sh b/tmux/.config/sh/alias.d/tmux.sh index a474006..20277a9 100644 --- a/tmux/.config/sh/alias.d/tmux.sh +++ b/tmux/.config/sh/alias.d/tmux.sh @@ -12,10 +12,10 @@ alias tl='tmux list-sessions -F "#{session_name}" 2>/dev/null' # fzf if exist fzf; then # fzf select a tmux session to connect to, with pane preview - alias tm='fzf_tmux' + alias tm='fzf_tmux_session' fi -fzf_tmux() { +fzf_tmux_session() { if [ -z "$1" ]; then result=$( tl | fzf \