From 1af1306c2c710ffba80c7c033bcef30a36fba51d Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Sun, 20 Jun 2021 15:41:20 +0200 Subject: New zsh config inspired by Chris --- .config/shell/aliasrc | 5 ++--- .config/shell/profile | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to '.config/shell') diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 8c72621..47fb4a9 100755 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -15,7 +15,7 @@ done alias \ cp="cp -iv" \ mv="mv -iv" \ - rm="rm -vI" \ + rm="rm -viI" \ bc="bc -ql" \ mkd="mkdir -pv" \ ffmpeg="ffmpeg -hide_banner" @@ -32,11 +32,10 @@ alias \ gpuwatch="watch -n1 nvidia-smi" \ zshconfig="nvim ~/.zshrc" \ zrc="nvim ~/.zshrc" \ - zsource="source ~/.zshrc" \ + zsource="source $HOME/.config/zsh/.zshrc" \ sdn="sudo shutdown -h now" \ e="$EDITOR" \ v="$EDITOR" \ p="sudo pacman" \ config="/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME" \ - tmux="tmux -f $XDG_CONFIG_HOME/tmux/.tmux.conf" \ z="zathura" diff --git a/.config/shell/profile b/.config/shell/profile index e1dbf52..3f3098b 100755 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -19,6 +19,8 @@ export XDG_CACHE_HOME="$HOME/.cache" export XINITRC="${XDG_CONFIG_HOME:-$HOME/.config}/x11/xinitrc" export ZDOTDIR="${XDG_CONFIG_HOME:-$HOME/.config}/zsh" export TMUX_TMPDIR="$XDG_RUNTIME_DIR" +export JUPYTER_CONFIG_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/.jupyter" +export IPYTHONDIR="${XDG_DATA_HOME:-$HOME/.local/share}/.ipython" export CARGO_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/cargo" export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go" export HISTFILE="${XDG_DATA_HOME:-$HOME/.local/share}/history" @@ -31,6 +33,9 @@ export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init --path)" +# Poetry autocompletion +fpath+=~/.zfunc + if pacman -Qs libxft-bgra >/dev/null 2>&1; then # Start graphical server on user's current tty if not already running. [ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" -- cgit v1.2.3-70-g09d2