New featuer: ZSH named dirs

This commit is contained in:
Arjun Karangiya
2020-04-06 11:29:58 +05:30
parent d650aacb90
commit 1316be8ec4
3 changed files with 6 additions and 3 deletions

View File

@@ -42,5 +42,5 @@ alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
# Some other stuff
alias \
magit="nvim -c MagitOnly" \
ref="shortcuts >/dev/null; source ~/.config/shortcutrc" \
ref="shortcuts >/dev/null; source ~/.config/shortcutrc; source ~/.config/zshnameddirrc" \
weath="less -S ~/.local/share/weatherreport" \

View File

@@ -3,9 +3,10 @@
autoload -U colors && colors
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
# Load aliases and shortcuts if existent.
# Load aliases, shortcuts and nameddirs if existent.
[ -f "$HOME/.config/shortcutrc" ] && source "$HOME/.config/shortcutrc"
[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
[ -f "$HOME/.config/zshnameddirrc" ] && source "$HOME/.config/zshnameddirrc"
autoload -U compinit
zstyle ':completion:*' menu select