summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author135e2 <[email protected]>2022-04-01 15:32:48 +0800
committer135e2 <[email protected]>2022-04-01 15:34:29 +0800
commit0a3b0245d51ce149c792e5a8dd2b995da848787b (patch)
tree64f4f2592e65051fb88b7e4c8562c84c32ed76bd
parent9ae1e12a1e878c0998768d84fca7136f4767c29c (diff)
downloaddotfiles-0a3b0245d51ce149c792e5a8dd2b995da848787b.tar.gz
dotfiles-0a3b0245d51ce149c792e5a8dd2b995da848787b.tar.bz2
dotfiles-0a3b0245d51ce149c792e5a8dd2b995da848787b.zip
.zshrc: update to 20220401
- Use aliases from https://github.com/mathiasbynens/dotfiles/blob/main/.aliases - Update $PATH - Scaleway CLI autocomplete initialization
-rw-r--r--.zshrc16
1 files changed, 16 insertions, 0 deletions
diff --git a/.zshrc b/.zshrc
index 96c12e3..b69cb19 100644
--- a/.zshrc
+++ b/.zshrc
@@ -56,6 +56,15 @@ zinit wait="1" lucid for \
zinit ice lucid wait='0' atload='_zsh_autosuggest_start'
zinit light zsh-users/zsh-autosuggestions
+# Easier navigation: .., ..., ...., ....., ~ and -
+# Copied from https://github.com/mathiasbynens/dotfiles/blob/main/.aliases
+alias ..="cd .."
+alias ...="cd ../.."
+alias ....="cd ../../.."
+alias .....="cd ../../../.."
+alias ~="cd ~" # `cd` is probably faster to type though
+alias -- -="cd -"
+
# Use exa instead
DISABLE_LS_COLORS=true
alias ls=exa
@@ -74,3 +83,10 @@ export GPG_TTY=${_P9K_TTY}
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
+
+# local PATH
+export PATH="$PATH:${HOME}/.local/bin"
+export PATH="$HOME/.poetry/bin:$PATH"
+
+# Scaleway CLI autocomplete initialization.
+eval "$(scw autocomplete script shell=zsh)"