Compare commits
No commits in common. "9561777fb72d8e3d79a92c4ac840ec0fcde4ac94" and "b99366dbbecbcc5630e9d1be4cc3fa2ed6fda0c6" have entirely different histories.
9561777fb7
...
b99366dbbe
2 changed files with 6 additions and 6 deletions
|
@ -17,7 +17,7 @@ if [ -f "$1" ]
|
||||||
then
|
then
|
||||||
$EDITOR $1
|
$EDITOR $1
|
||||||
else
|
else
|
||||||
file=$(sh -c "find $root $ignore -type f" | fzf -i -m -1 -q "$*")
|
file=$(sh -c "find $root $ignore -type f" | fzf -m -1 -q "$*")
|
||||||
if [ "$?" -eq 0 ]
|
if [ "$?" -eq 0 ]
|
||||||
then
|
then
|
||||||
echo "$file" | xargs -d '\n' $EDITOR
|
echo "$file" | xargs -d '\n' $EDITOR
|
||||||
|
|
10
zshrc
10
zshrc
|
@ -21,12 +21,12 @@ bindkey -v
|
||||||
which task > /dev/null && which jq > /dev/null
|
which task > /dev/null && which jq > /dev/null
|
||||||
run_task_prompt=$?
|
run_task_prompt=$?
|
||||||
task_prompt() {
|
task_prompt() {
|
||||||
if [ $run_task_prompt -eq 0 ]
|
if [ -z $run_task_prompt ]
|
||||||
then
|
then
|
||||||
tasks="$(task +ACTIVE export | jq -r '.[].description' | sed 's/^/‣ /')"
|
tasks="$(task +ACTIVE export | jq -r '.[].description' | sed 's/^/‣ /')"
|
||||||
if [ -n "$tasks" ]
|
if [ -n "$tasks" ]
|
||||||
then
|
then
|
||||||
echo "%F{black}$tasks\n%{%}"
|
echo "\x1b[30m$tasks\n\x1b[0m"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -34,10 +34,10 @@ task_prompt() {
|
||||||
which timew > /dev/null
|
which timew > /dev/null
|
||||||
run_timew_prompt=$?
|
run_timew_prompt=$?
|
||||||
timew_prompt() {
|
timew_prompt() {
|
||||||
if [ $run_timew_prompt -eq 0 ]
|
if [ -z $run_timew_prompt ]
|
||||||
then
|
then
|
||||||
if [ $(timew get dom.active) -eq "1" ]
|
if [ $(timew get dom.active) -eq "1" ]
|
||||||
then echo '%F{red}● '
|
then echo '\x1b[31m●\x1b[0m '
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ ranger_prompt() {
|
||||||
}
|
}
|
||||||
|
|
||||||
prompt='$(task_prompt)%(?.%F{green}.%F{red})λ%F{blue}$(ranger_prompt)%f '
|
prompt='$(task_prompt)%(?.%F{green}.%F{red})λ%F{blue}$(ranger_prompt)%f '
|
||||||
export PROMPT_full='$(timew_prompt)%B%F{magenta}%n%F{blue}@%F{magenta}%m%b %F{magenta}%~
|
export PROMPT_full='%F{red}$(timew_prompt)%B%F{magenta}%n%F{blue}@%F{magenta}%m%b %F{magenta}%~
|
||||||
'"$prompt"
|
'"$prompt"
|
||||||
export PROMPT_gitlong='%F{red}$(timew_prompt)$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)
|
export PROMPT_gitlong='%F{red}$(timew_prompt)$(gitprompt && echo -ne " ")%F$(git log --oneline --no-decorate -1 2>/dev/null)
|
||||||
%F{cyan}$(gitpath)'"$prompt"
|
%F{cyan}$(gitpath)'"$prompt"
|
||||||
|
|
Loading…
Reference in a new issue