Skip to content

Commit 00c3b34

Browse files
committed
Replace antigen with antigen-hs
1 parent cf711b1 commit 00c3b34

File tree

6 files changed

+30
-54
lines changed

6 files changed

+30
-54
lines changed

.gitmodules

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
[submodule "zsh/antigen"]
2-
path = zsh/antigen
3-
url = https://github.com/zsh-users/antigen.git
41
[submodule "zsh/plugins/completions"]
52
path = zsh/plugins/completions
63
url = git://github.com/zsh-users/zsh-completions.git
4+
[submodule "zsh/antigen-hs"]
5+
path = zsh/antigen-hs
6+
url = git@github.com:Tarrasch/antigen-hs.git

zsh/MyAntigen.hs

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{-# LANGUAGE OverloadedStrings #-}
2+
{-# LANGUAGE ExtendedDefaultRules #-}
3+
module MyAntigen where
4+
5+
import Antigen (AntigenConfiguration (..), bundle, antigen)
6+
import Shelly (shelly)
7+
8+
bundles =
9+
[ bundle "Tarrasch/zsh-functional"
10+
, bundle "Tarrasch/zsh-bd"
11+
, bundle "Tarrasch/zsh-command-not-found"
12+
, bundle "Tarrasch/zsh-colors"
13+
, bundle "Tarrasch/zsh-autoenv"
14+
, bundle "Tarrasch/zsh-i-know"
15+
, bundle "Tarrasch/pure"
16+
, bundle "Tarrasch/zsh-mcd"
17+
, bundle "zsh-users/zsh-syntax-highlighting"
18+
, bundle "zsh-users/zsh-history-substring-search"
19+
]
20+
21+
config = AntigenConfiguration bundles
22+
23+
main :: IO ()
24+
main = shelly $ antigen config

zsh/antigen

-1
This file was deleted.

zsh/antigen-hs

Submodule antigen-hs added at ddda46e

zsh/init-antigen.zsh

-48
This file was deleted.

zshrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ colors
2828
bindkey ";5C" forward-word
2929
bindkey ";5D" backward-word
3030

31-
# Initialize antigen
32-
. ~/.zsh/init-antigen.zsh
31+
# Initialize antigen-hs
32+
. ~/.zsh/antigen-hs/init.zsh
3333

3434
# Python autocompletion (http://stackoverflow.com/a/246779/621449)
3535
export PYTHONSTARTUP=~/.pythonrc

0 commit comments

Comments
 (0)