Update.
This commit is contained in:
parent
0f42ec4d1f
commit
d74b672e60
13 changed files with 89 additions and 47 deletions
|
@ -20,8 +20,12 @@ mvln () {
|
|||
|
||||
# Find my script and let me edit them
|
||||
se() {
|
||||
fd . ~/bin -L --type f --color=never | fzf --prompt "Choose script to edit: " \
|
||||
--preview 'bat --color=always --style=plain --pager=never {}' | xargs -r $EDITOR
|
||||
current=$(pwd)
|
||||
file=$(fd . ~/bin -L --type f --color=never | fzf --prompt "Choose script to edit: " \
|
||||
--preview 'bat --color=always --style=plain --pager=never {}')
|
||||
[ "$file" = "" ] && return
|
||||
cd "$(dirname "$file")" && nvim "$(basename "$file")"
|
||||
cd "$current"
|
||||
}
|
||||
|
||||
# List my config and open the dir in a editor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue