ahd

ahd

🌸 Apache Header Manager

Showing:

Popularity

Downloads/wk

14

GitHub Stars

1

Maintenance

Last Commit

4yrs ago

Contributors

2

Package

Dependencies

13

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Apache Header Helper

Build Status npm version

Helper you configure Apache headers

help

Installation

Requirements

  • node, npm

Install

$ sudo npm install -g ahd
$ sudo ahd init

Recommand

아파치를 재시작해야 하기 때문에 sudo로 실행해야 한다. 매번 sudo를 치지 않기 위해서 .bachrc.bash_profile에 alias를 추가하는 것을 추천한다.

alias ahd="sudo ahd"

Update

$ sudo npm outdated -g ahd # check version
$ sudo npm install -g ahd

Usage

$ ahd -h # help
$ ahd -v # version

# Show List
$ ahd list # shortcut 'l'
$ ahd l -e # Show enable header
$ ahd l -d # Show disable header

# Set header
$ ahd -eo wicksome # enable only
$ ahd -e wicksome # enable
$ ahd -d wicksome # disable
$ ahd -d .+@.+ # Interpret pattern as an extended regular expression
$ ahd -ea # enable all
$ ahd -da $ disable all

# Manege header
$ ahd view wicksome # shortcut 'v'
$ ahd add wicksome-test # shortcut 'a'
$ ahd remove wicksome-test # shortcut 'r'
$ ahd edit wicksome # shortcut 'e'

Autocomplete headers using fzf

  • install

    $ brew install fzf
    $ /usr/local/opt/fzf/install
    
  • set config .bash_profile

    _fzf_complete_ahd() {
      _fzf_complete "--reverse" "$@" < <(
        ls ~/.ahd
      )
    }
    

    zsh will automatically pick up the command using the naming convention but in bash you have to connect the function to the command using complete command.

    [ -n "$BASH" ] && complete -F _fzf_complete_ahd -o default -o bashdefault ahd
    
  • usage

    $ ahd -eo **<TAB>
    

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial