Add missing "function" prefix
This commit is contained in:
parent
1feae14e8b
commit
9295fa6dfa
30
zshrc
30
zshrc
|
@ -2085,7 +2085,7 @@ source "${HOME}/.fzf/shell/key-bindings.zsh"
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Display a preview tree of the directory
|
# Display a preview tree of the directory
|
||||||
# Move to the selected directory
|
# Move to the selected directory
|
||||||
ff() {
|
function ff() {
|
||||||
local dir
|
local dir
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2107,7 +2107,7 @@ ff() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Display a preview tree of the directory
|
# Display a preview tree of the directory
|
||||||
# Move to the selected directory
|
# Move to the selected directory
|
||||||
ffh() {
|
function ffh() {
|
||||||
local dir
|
local dir
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2129,7 +2129,7 @@ ffh() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Display a preview tree of the directory
|
# Display a preview tree of the directory
|
||||||
# Move to the selected directory
|
# Move to the selected directory
|
||||||
ffa() {
|
function ffa() {
|
||||||
local dir
|
local dir
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2146,7 +2146,7 @@ ffa() {
|
||||||
}
|
}
|
||||||
# }}}
|
# }}}
|
||||||
# ffu - cd to selected parent directory {{{
|
# ffu - cd to selected parent directory {{{
|
||||||
ffu() {
|
function ffu() {
|
||||||
local declare dirs=()
|
local declare dirs=()
|
||||||
local dir
|
local dir
|
||||||
|
|
||||||
|
@ -2179,7 +2179,7 @@ ffu() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Display a directory preview tree of the selected file with eza
|
# Display a directory preview tree of the selected file with eza
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
fff() {
|
function fff() {
|
||||||
local file
|
local file
|
||||||
local dir
|
local dir
|
||||||
|
|
||||||
|
@ -2202,7 +2202,7 @@ fff() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Display a directory preview tree of the selected file with eza
|
# Display a directory preview tree of the selected file with eza
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
cf() {
|
function cf() {
|
||||||
local file
|
local file
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2270,7 +2270,7 @@ function v() {
|
||||||
# Display a preview of selected file with lesspipe
|
# Display a preview of selected file with lesspipe
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with "${PDF_VIEWER}"
|
# Open the selected file with "${PDF_VIEWER}"
|
||||||
pdf() {
|
function pdf() {
|
||||||
local files
|
local files
|
||||||
local dir
|
local dir
|
||||||
local file
|
local file
|
||||||
|
@ -2303,7 +2303,7 @@ pdf() {
|
||||||
# Display a preview of selected file with lesspipe
|
# Display a preview of selected file with lesspipe
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with evince (default rollback to "${PDF_VIEWER}")
|
# Open the selected file with evince (default rollback to "${PDF_VIEWER}")
|
||||||
pdfe() {
|
function pdfe() {
|
||||||
local files
|
local files
|
||||||
local dir
|
local dir
|
||||||
local file
|
local file
|
||||||
|
@ -2343,7 +2343,7 @@ pdfe() {
|
||||||
# Display a preview of selected file with lesspipe
|
# Display a preview of selected file with lesspipe
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with zathura (default rollback to "${PDF_VIEWER}")
|
# Open the selected file with zathura (default rollback to "${PDF_VIEWER}")
|
||||||
pdfz() {
|
function pdfz() {
|
||||||
local files
|
local files
|
||||||
local dir
|
local dir
|
||||||
local file
|
local file
|
||||||
|
@ -2384,7 +2384,7 @@ pdfz() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with libreoffice --writer
|
# Open the selected file with libreoffice --writer
|
||||||
odt() {
|
function odt() {
|
||||||
local files
|
local files
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2415,7 +2415,7 @@ odt() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with libreoffice --calc
|
# Open the selected file with libreoffice --calc
|
||||||
ods() {
|
function ods() {
|
||||||
local files
|
local files
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2446,7 +2446,7 @@ ods() {
|
||||||
# Allow to give arguments to prefill fzf request
|
# Allow to give arguments to prefill fzf request
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with libreoffice --impress
|
# Open the selected file with libreoffice --impress
|
||||||
odp() {
|
function odp() {
|
||||||
local files
|
local files
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2478,7 +2478,7 @@ odp() {
|
||||||
# Other arguments will prefill fzf request
|
# Other arguments will prefill fzf request
|
||||||
# Move to the directory of the selected file
|
# Move to the directory of the selected file
|
||||||
# Open the selected file with xdg-open
|
# Open the selected file with xdg-open
|
||||||
fopen() {
|
function fopen() {
|
||||||
local files
|
local files
|
||||||
|
|
||||||
## Manage argument {{{
|
## Manage argument {{{
|
||||||
|
@ -2507,7 +2507,7 @@ fopen() {
|
||||||
# dexec − Docker exec in a running container {{{
|
# dexec − Docker exec in a running container {{{
|
||||||
# Display Docker running containers
|
# Display Docker running containers
|
||||||
# Allow to specify the shell (default to bash)
|
# Allow to specify the shell (default to bash)
|
||||||
dexec() {
|
function dexec() {
|
||||||
local images_name
|
local images_name
|
||||||
local container_name
|
local container_name
|
||||||
local container_id
|
local container_id
|
||||||
|
@ -2527,7 +2527,7 @@ dexec() {
|
||||||
# passf − Edit pass's passwords {{{
|
# passf − Edit pass's passwords {{{
|
||||||
# Display existing files in ~/.password-store without .gpg extension
|
# Display existing files in ~/.password-store without .gpg extension
|
||||||
# https://www.passwordstore.org/
|
# https://www.passwordstore.org/
|
||||||
passf() {
|
function passf() {
|
||||||
local pass_files
|
local pass_files
|
||||||
|
|
||||||
pass_file=$(find ~/.password-store -type f -iname "*.gpg" -printf "%P\n" | sed 's/\(.*\)\.gpg$/\1/' | fzf --prompt='pass > ' )
|
pass_file=$(find ~/.password-store -type f -iname "*.gpg" -printf "%P\n" | sed 's/\(.*\)\.gpg$/\1/' | fzf --prompt='pass > ' )
|
||||||
|
|
Loading…
Reference in New Issue