stuff
This commit is contained in:
parent
94888758fd
commit
96d1c576a6
6 changed files with 20 additions and 54 deletions
|
@ -1,28 +1,14 @@
|
|||
#!/usr/bin/env zsh
|
||||
|
||||
#####################
|
||||
# COMMONS
|
||||
#####################
|
||||
autoload colors is-at-least
|
||||
|
||||
#########################
|
||||
# CONSTANT
|
||||
#########################
|
||||
BOLD="bold"
|
||||
NONE="NONE"
|
||||
|
||||
#########################
|
||||
# PLUGIN MAIN
|
||||
#########################
|
||||
|
||||
[[ -z "$DIRENV_HOME" ]] && export DIRENV_HOME="$HOME/.config/direnv"
|
||||
|
||||
ZSH_DIRENV_VERSION_FILE=${DIRENV_HOME}/version.txt
|
||||
|
||||
#########################
|
||||
# Functions
|
||||
#########################
|
||||
|
||||
_zsh_direnv_log() {
|
||||
local font=$1
|
||||
local color=$2
|
||||
|
@ -37,7 +23,7 @@ _zsh_direnv_log() {
|
|||
}
|
||||
|
||||
_zsh_direnv_last_version() {
|
||||
echo $(curl -s https://api.github.com/repos/direnv/direnv/releases | grep tag_name | head -n 1 | cut -d '"' -f 4)
|
||||
echo $(curl -s https://api.github.com/repos/direnv/direnv/releases | grep tag_name | head -n 1 | cut -d '"' -f4)
|
||||
}
|
||||
|
||||
_zsh_direnv_download_install() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue