Add basic zsh connection
This commit is contained in:
parent
902ca7dc02
commit
bb900a090f
9 changed files with 69 additions and 54 deletions
|
|
@ -1,12 +0,0 @@
|
|||
export XDG_CONFIG_HOME="$HOME/.config"
|
||||
|
||||
# .zlogin
|
||||
#
|
||||
# load all files from .config/shell/login.d
|
||||
if [ -d $XDG_CONFIG_HOME/shell/login.d ]; then
|
||||
for file in $XDG_CONFIG_HOME/shell/login.d/*.sh; do
|
||||
source $file
|
||||
done
|
||||
fi
|
||||
|
||||
export PATH="$HOME/.cargo/bin:$PATH"
|
||||
6
home/.zshenv
Normal file
6
home/.zshenv
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env zsh
|
||||
#
|
||||
|
||||
# make zsh source the correct directory
|
||||
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-"$HOME/.config"}
|
||||
ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||
19
home/.zshrc
19
home/.zshrc
|
|
@ -1,19 +0,0 @@
|
|||
#!/bin/zsh
|
||||
|
||||
autoload zmv
|
||||
|
||||
if [ -d $XDG_CONFIG_HOME/shell/rc.d ]; then
|
||||
for file in $XDG_CONFIG_HOME/shell/rc.d/*.sh; do
|
||||
source $file
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -d $XDG_CONFIG_HOME/shell/zshrc.d ]; then
|
||||
for file in $XDG_CONFIG_HOME/shell/zshrc.d/*.zsh; do
|
||||
source $file
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue