Collection of useful functions and aliases for fish shell
Download or clone the repository, then just run the install.bash
script.
Enter 'y' and confirm your input to replace all the functions in your fish
config directory.
The ls
function will, instead of the usual ls
binary, try to use eza
or exa
,
if either of them is installed on the system.
Other shorthands for common ls
usages:
l
: short forls
la
: short forls -a
ll
: short forls -l
lla
: short forls -l -a
Functions that aim to assist with using Docker:
dps
: prints Docker container status, but without network infodpsq
: prints Docker container IDsdpp
: prints Docker container network info (networks and ports)dbash
: executes bash interactively in a running containerdsh
: executes sh interactively in a running containerdbinds
: prints bind-mounts and volumes of containersdip
: prints container IP addresses
Providing shorthand forms of common git usages:
gs
:git status
gf
:git fetch
gp
:git pull
gch
:git checkout
gl
:git log --pretty=oneline -n 20
gadd
:git add
gap
:git add --patch
gd
:git diff
gds
:git diff --staged
venv
: Python virtual environment utility (activation, deactivation, creation)psgrep
: find a running process by name using a patternclip
: copy stdin to the clipboard, usingxclip
heil
:head
andtail
at the same timecat
: will usebat
, if availabletree
: will useeza --tree
, if available
and many others!