find : add find_types to find all filetypes.
This commit is contained in:
parent
0baff72656
commit
9a7c837395
|
@ -632,7 +632,7 @@ Command|Description
|
|||
`ta [NAME]`|Attach to session by name. Default is `main`.
|
||||
`td`|Detach from session.
|
||||
`tl`|List all sessions.
|
||||
`tr [NAME]`|Rename session. Uses current dir name by default.
|
||||
`trn [NAME]`|Rename session. Uses current dir name by default.
|
||||
`tn [NAME]`|Name window. Uses current dir name by default.
|
||||
`tk [NAME]`|Kill session. Default is `main`.
|
||||
`tka`|Kill all sessions.
|
||||
|
|
6
.config/bash/module/find.sh
Normal file
6
.config/bash/module/find.sh
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Find all file types recursively.
|
||||
find_types()
|
||||
{
|
||||
local types=($(find -type f | sed "s/.*\.//"))
|
||||
echo "${types[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' '
|
||||
}
|
|
@ -19,8 +19,8 @@ alias td="tmux detach-client"
|
|||
alias tl="tmux list-sessions"
|
||||
|
||||
# Rename current session. Uses current dir name by default.
|
||||
# Usage: tr [NAME]
|
||||
tr()
|
||||
# Usage: trn [NAME]
|
||||
trn()
|
||||
{
|
||||
local name="${1}"
|
||||
|
||||
|
|
Reference in a new issue