summaryrefslogtreecommitdiff
path: root/.config/zsh/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.config/zsh/.zshrc')
-rw-r--r--.config/zsh/.zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc
index e4d366c..3001407 100644
--- a/.config/zsh/.zshrc
+++ b/.config/zsh/.zshrc
@@ -38,6 +38,10 @@ zstyle :compinstall filename '/home/andrew/.zshrc'
autoload -Uz compinit
compinit -d $XDG_CACHE_HOME/zsh/zcompdump
+cdf() {
+ cd $(find ~ -type d &>/dev/null | fzf)
+}
+
set_ps1() {
# red color if current user us root, otherwise - green
[ "$USER" = "root" ] && UCOLOR="%B%F{red}" || UCOLOR="%B%F{green}"