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.
This commit is contained in:
Marty Oehme 2020-02-16 14:21:42 +01:00
parent fcbadd2bf0
commit d5b7646611
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
2 changed files with 4 additions and 2 deletions

View file

@ -31,6 +31,8 @@ alias ..="cd .."
alias ...="cd ../.." alias ...="cd ../.."
alias ~="cd ~" alias ~="cd ~"
alias md="mkdir -p"
# clear my screen # clear my screen
alias cl="clear" alias cl="clear"

View file

@ -12,10 +12,10 @@ alias tl='tmux list-sessions -F "#{session_name}" 2>/dev/null'
# fzf # fzf
if exist fzf; then if exist fzf; then
# fzf select a tmux session to connect to, with pane preview # fzf select a tmux session to connect to, with pane preview
alias tm='fzf_tmux' alias tm='fzf_tmux_session'
fi fi
fzf_tmux() { fzf_tmux_session() {
if [ -z "$1" ]; then if [ -z "$1" ]; then
result=$( result=$(
tl | fzf \ tl | fzf \