rwxrob / dot

Migrating to z Bonzai stateful command tree monolith
https://github.com/rwxrob/z
Apache License 2.0
242 stars 38 forks source link

Add support for #!/usr/bin/env bash for .vimrc (DetectBash) #56

Open gonzaru opened 2 years ago

gonzaru commented 2 years ago

Hello!

As some of scripts of the repo uses this path, maybe it's a good idea also support it on .vimrc if necessary.

fun! s:DetectBash()
    if getline(1) == '#!/usr/bin/bash' || getline(1) == '#!/bin/bash' || getline(1) == '#!/usr/bin/env bash'
      ...
    endif
endfun

Regards!