Rename modules/home to modules/home-manager
This commit is contained in:
16
modules/home-manager/zsh/functions.zsh
Normal file
16
modules/home-manager/zsh/functions.zsh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env zsh
|
||||
# My custom zsh functions
|
||||
|
||||
fzf-z() {
|
||||
dir=$(z | fzf --tiebreak=index --tac | sed -E 's/^[0-9]+[[:space:]]+//')
|
||||
cd $dir
|
||||
}
|
||||
|
||||
mkcd ()
|
||||
{
|
||||
mkdir -p -- "$1" && cd -P -- "$1"
|
||||
}
|
||||
|
||||
run() {
|
||||
nix run nixpkgs#"$1" -- ${@:2}
|
||||
}
|
Reference in New Issue
Block a user