mirror of
https://github.com/zsh-users/zsh-autosuggestions.git
synced 2024-11-18 09:51:06 +01:00
Merge pull request #57 from jirutka/patch-2
Fix and unify formatting and code-style
This commit is contained in:
commit
2d5ac282a9
6 changed files with 51 additions and 45 deletions
7
.editorconfig
Normal file
7
.editorconfig
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
[*]
|
||||||
|
charset = utf-8
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
indent_style = tab
|
||||||
|
indent_size = 4
|
5
install
5
install
|
@ -3,8 +3,7 @@
|
||||||
# Install script for zsh-autocomplete
|
# Install script for zsh-autocomplete
|
||||||
|
|
||||||
config="$HOME/.zshrc"
|
config="$HOME/.zshrc"
|
||||||
for config in "$HOME/.zshrc" "$ZDOTDIR/.zshrc" "$1"
|
for config in "$HOME/.zshrc" "$ZDOTDIR/.zshrc" "$1"; do
|
||||||
do
|
|
||||||
echo $config
|
echo $config
|
||||||
#first checks if ~/.zshrc file exists and is readable
|
#first checks if ~/.zshrc file exists and is readable
|
||||||
if [ -r "$config" ]; then
|
if [ -r "$config" ]; then
|
||||||
|
@ -24,7 +23,7 @@ done
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
|
||||||
|
|
||||||
# appends the string to $config (usually ~/.zshrc) file
|
# appends the string to $config (usually ~/.zshrc) file
|
||||||
cat >> "$config" << EOF
|
cat >> "$config" <<-EOF
|
||||||
|
|
||||||
# Setup zsh-autosuggestions
|
# Setup zsh-autosuggestions
|
||||||
source $DIR/autosuggestions.zsh
|
source $DIR/autosuggestions.zsh
|
||||||
|
|
Loading…
Reference in a new issue