From a54125ec2d5a43a6f3e578681f0862114c3b8745 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 28 Feb 2018 19:49:47 +0000 Subject: Adding tmux, zsh and X config --- zsh/.zsh/function.zsh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 zsh/.zsh/function.zsh (limited to 'zsh/.zsh/function.zsh') diff --git a/zsh/.zsh/function.zsh b/zsh/.zsh/function.zsh new file mode 100644 index 0000000..30e24aa --- /dev/null +++ b/zsh/.zsh/function.zsh @@ -0,0 +1,14 @@ +alias fdisk='fdisk --color=always' +alias grep='grep --color=always' +alias ls='ls --color=always' +alias l='ls -la --color=always' +alias vim='nvim' +# alias lspasscp='lpass show -c --password $(lpass ls | fzf | awk '{print $(NF)}' | sed 's/\\]//g')' + +# fd - cd to selected directory +fd() { + local dir + dir=$(find ${1:-.} -path '*/\.*' -prune \ + -o -type d -print 2> /dev/null | fzf +m) && + cd "$dir" +} -- cgit