-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
82 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Internals | ||
# Documentation | ||
|
||
## Internal functions | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
complete -c fishline --no-files | ||
complete -c fishline -a "(fishline -x)" | ||
complete -c fishline -x -n __fish_use_subcommand -s s -d "Set the last command status exit code" | ||
complete -c fishline -n __fish_use_subcommand -s l -d "Generate a fish_prompt" | ||
complete -c fishline -n __fish_use_subcommand -s r -d "Generate a fish_right_prompt" | ||
complete -c fishline -x -n __fish_use_subcommand -s x -d "Print the list of availlable segment and exit" | ||
complete -c fishline -x -n __fish_use_subcommand -s v -d "Print the software version and exit" | ||
complete -c fishline -x -n __fish_use_subcommand -s h -d "Print help message" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env fish | ||
# -*- mode:fish; tab-width:4 -*- | ||
|
||
if not set -q FLINE_THEME_DIR | ||
if type -q realpath | ||
set FLINE_THEME_DIR (dirname (realpath (status -f)))/fishline-themes | ||
else | ||
set FLINE_THEME_DIR (dirname (status -f))/fishline-themes | ||
end | ||
end | ||
|
||
# Load default symbols | ||
source $FLINE_THEME_DIR/default_symbols.fish | ||
|
||
# Load default color theme depending on terminal capabilities | ||
if begin; [ (uname) != "Darwin" ]; and tty | grep tty > /dev/null; end | ||
# Emable a TTY safe default theme if a TTY is detected | ||
source $FLINE_THEME_DIR/tty_compatible.fish | ||
else if begin; not command -s tput > /dev/null; or [ (tput colors) -lt 256 ]; end | ||
# Assume ANSI 8 Colors when tput is not availlable & tput colors < 256 | ||
source $FLINE_THEME_DIR/default_ansi_colors.fish | ||
else | ||
# Load default 256 colors theme otherwise | ||
source $FLINE_THEME_DIR/default_256_colors.fish | ||
end | ||
|
||
# Default Fishline Prompt | ||
set FLINE_DEFAULT_PROMPT vimode sigstatus jobs pwd git write n root | ||
|
||
# Set Signal Code list for internal use | ||
set FLSEG_STATUS_NAME (command kill -l| tr ' [a-z]' '\n[A-Z]') | ||
|
||
# Set internal initialization flag | ||
set _fishline_init true |
16 changes: 8 additions & 8 deletions
16
themes/default_256_colors.fish → ...d/fishline-themes/default_256_colors.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
conf.d/fishline-themes |