ref: setup.sh

This commit is contained in:
TheK4n 2021-11-14 18:49:06 +03:00
parent 88aa25d7bf
commit 37fa08b2ad
3 changed files with 10 additions and 17 deletions

20
.zshrc
View File

@ -261,17 +261,11 @@ if [ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ]; then
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999'
fi
so () {
[ -f "$1" ] && source "$1"
}
# enable command-not-found if installed
if [ -f /etc/zsh_command_not_found ]; then
. /etc/zsh_command_not_found
fi
if [ -f $HOME/.bash_aliases ]; then
source $HOME/.bash_aliases
fi
if [ -f $HOME/.bash_functions ]; then
source $HOME/.bash_functions
fi
so /etc/zsh_command_not_found
so "$HOME"/.subbash/aliases
so "$HOME"/.subbash/functions
so "$HOME"/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

View File

@ -32,7 +32,6 @@ Bash config files
git clone https://github.com/TheK4n/dotfiles
chmod u+x dotfiles/setup.sh
dotfiles/setup.sh
rm -rf dotfiles
. ~/.bashrc
```

View File

@ -1,5 +1,5 @@
#!/usr/bin/bash
cp -r dotfiles/.subbash ~
cp dotfiles/.bashrc ~
cp dotfiles/.vimrc ~
ln -s "$PWD"/dotfiles/.subbash ~
ln -s "$PWD"/dotfiles/.bashrc ~
ln -s "$PWD"/dotfiles/.vimrc ~