Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Fish functions for dotfiles

Collections of fish functions I use in my dotfiles. Packaged separately from the rest of my dotfiles. For those who would find these functions useful but don't want the other personalize cruft that comes with my dotfiles.

  • Install this plugin with fisher <https://github.com/jorgebucaran/fisher>_

    • Fisher is the de facto Fish community plugin manager.
  • The plugins can also be installed manually.

Plugin Categories

Filesystem Navigation

  • ud
    • jump up a number of directories
    • jump up to a directory with
      • with an initial string in directory name, or
      • containing a file with an initial string in file name
  • dn
    • jump down directory tree to a directory
      • with an initial string in directory name, or
      • containing a file with an initial string in file name

Path Manipulation and Searching

Path manipulation and searching functions.

  • pathtrim
    • Remove duplicate and non-existent directories from
      • the arguments given
      • use $PATH if no arguments are given
      • existing relative component are resolved against the cwd
      • if relative components are desired (not recommended)
        • append to path after running pathtrim
  • digpath
    • looks for targets on $PATH
      • like the type -P fish builtin
      • does not stop after finding the first match
      • an alternate $PATH can be provided as arguments
      • targets do not have to be executable

Text Alignment

Functions to horizontally and vertically align data.

  • Horizontal column alignment commands

    • zip2
      • Combine 2 fish arrays with a separator into 2 columns.
    • zip (TODO)
      • Combine an arbitrary number of fish arrays with a separator into columns.
    • tab_align2
      • Tab align 2 fish arrays into 2 columns.
    • tab_align (TODO)
      • Tab align an arbitrary number of fish arrays into columns.
    • fields
      • Extract fields from rows.

Copyright and License

Copyright (c) 2026 Geoffrey R. Scheller. Licensed under the Apache License, Version 2.0. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages