diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2018-02-28 19:49:47 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2018-02-28 19:49:47 +0000 |
commit | a54125ec2d5a43a6f3e578681f0862114c3b8745 (patch) | |
tree | 75d4a3ec8e426d6ca4779384f1f08c538a7c3aa5 /zsh/.zsh/function.zsh | |
parent | d0943595971d8d03583fbe760f118846637a2de4 (diff) | |
download | dotfiles-a54125ec2d5a43a6f3e578681f0862114c3b8745.tar.gz dotfiles-a54125ec2d5a43a6f3e578681f0862114c3b8745.zip |
Adding tmux, zsh and X config
Diffstat (limited to 'zsh/.zsh/function.zsh')
-rw-r--r-- | zsh/.zsh/function.zsh | 14 |
1 files changed, 14 insertions, 0 deletions
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" +} |