diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-06-20 15:41:20 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-06-20 15:41:20 +0200 |
commit | 1af1306c2c710ffba80c7c033bcef30a36fba51d (patch) | |
tree | c2f6e861d4ce54cac4d9ab2e1489a77c5dce1c2d /.config/shell | |
parent | fcb8668fc5435ce5f306a8c218d7c1eb1f4d91e5 (diff) |
New zsh config inspired by Chris
Diffstat (limited to '.config/shell')
-rwxr-xr-x | .config/shell/aliasrc | 5 | ||||
-rwxr-xr-x | .config/shell/profile | 5 |
2 files changed, 7 insertions, 3 deletions
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" |