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:
parent
fcbadd2bf0
commit
d5b7646611
2 changed files with 4 additions and 2 deletions
|
@ -31,6 +31,8 @@ alias ..="cd .."
|
|||
alias ...="cd ../.."
|
||||
alias ~="cd ~"
|
||||
|
||||
alias md="mkdir -p"
|
||||
|
||||
# clear my screen
|
||||
alias cl="clear"
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue