Add missing "function" prefix

This commit is contained in:
gardouille 2023-11-02 11:36:21 +01:00
parent 1feae14e8b
commit 9295fa6dfa
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 15 additions and 15 deletions

30
zshrc
View File

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