Compare commits
No commits in common. "3238237d5266015f7b44cffbbe9c775e2663b3c8" and "ec586fd43eb1847dcc854f2f96ae3a76a7424f2c" have entirely different histories.
3238237d52
...
ec586fd43e
14
README.md
14
README.md
|
@ -1,22 +1,18 @@
|
|||
# min
|
||||
|
||||
> *A theme for [Oh My Fish](https://www.github.com/oh-my-fish/oh-my-fish).*
|
||||
|
||||
[![GPL License](https://img.shields.io/badge/license-GPL-blue.svg?longCache=true&style=flat-square)](/LICENSE)
|
||||
[![Fish Shell Version](https://img.shields.io/badge/fish-v2.7.1-blue.svg?style=flat-square)](https://fishshell.com)
|
||||
[![Oh My Fish Framework](https://img.shields.io/badge/Oh%20My%20Fish-Framework-blue.svg?style=flat-square)](https://www.github.com/oh-my-fish/oh-my-fish)
|
||||
|
||||
<br/>
|
||||
# min
|
||||
|
||||
![screenshot](screenshot.png)
|
||||
|
||||
## Description
|
||||
> A theme for [Oh My Fish](https://www.github.com/oh-my-fish/oh-my-fish)
|
||||
|
||||
A minimal prompt for the fish shell, to be used with [tmux](https://tmux.github.io).
|
||||
|
||||
![screenshot](screenshot.png)
|
||||
|
||||
## Install
|
||||
|
||||
```fish
|
||||
omf repositories add https://gitlab.com/argonautica/argonautica
|
||||
omf install min
|
||||
```
|
||||
```
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
function fish_greeting
|
||||
if test -z "$TMUX"
|
||||
echo (set_color red)"Not on tmux."(set_color normal)
|
||||
omf theme default
|
||||
else
|
||||
command grep -P '^source-file.*tmuxtheme$' $HOME/.tmux.conf | read theme
|
||||
string match -qr 'min\.tmuxtheme$' $theme
|
||||
and return 0
|
||||
omf cd min
|
||||
command realpath min.tmuxtheme | read min_theme
|
||||
test "$theme"
|
||||
and sed -i "s/$theme/$min_theme/g" $HOME/.tmux.conf
|
||||
or echo $min_theme >> $HOME/.tmux.conf
|
||||
tmux source-file $HOME/.tmux.conf
|
||||
prevd
|
||||
end
|
||||
if test -z "$TMUX"
|
||||
echo (set_color red)"Not on tmux."(set_color normal)
|
||||
else
|
||||
tmux source "$HOME/.local/share/omf/themes/min/min.tmuxtheme"
|
||||
end
|
||||
end
|
||||
|
|
|
@ -16,14 +16,14 @@ set -g status-fg colour240
|
|||
set -g status-bg colour233
|
||||
|
||||
# Left side of status bar
|
||||
set -g status-left-bg colour233
|
||||
set -g status-left-fg colour243
|
||||
# set -g status-left-bg colour233
|
||||
# set -g status-left-fg colour243
|
||||
set -g status-left-length 40
|
||||
set -g status-left "#[fg=colour233,bg=colour39] #S #[fg=colour39,bg=colour240]#[fg=colour233,bg=colour240] #(whoami) #[fg=colour240,bg=colour233]"
|
||||
|
||||
# Right side of status bar
|
||||
set -g status-right-bg colour233
|
||||
set -g status-right-fg colour243
|
||||
# set -g status-right-bg colour233
|
||||
# set -g status-right-fg colour243
|
||||
set -g status-right-length 150
|
||||
set -g status-right "#[fg=colour240,bg=colour233]#[fg=colour39,bg=colour240] #[fg=colour233,bg=colour39] #{pane_current_path} "
|
||||
|
||||
|
@ -32,12 +32,12 @@ set -g window-status-format " #I:#W "
|
|||
set -g window-status-current-format "#[fg=colour233,bg=black]#[fg=colour81] #I:#W #[fg=colour233,bg=black]"
|
||||
|
||||
# Current window status
|
||||
set -g window-status-current-bg colour39
|
||||
set -g window-status-current-fg colour235
|
||||
# set -g window-status-current-bg colour39
|
||||
# set -g window-status-current-fg colour235
|
||||
|
||||
# Window with activity status
|
||||
set -g window-status-activity-bg colour245 # fg and bg are flipped here due to
|
||||
set -g window-status-activity-fg colour233 # a bug in tmux
|
||||
# set -g window-status-activity-bg colour245
|
||||
# set -g window-status-activity-fg colour233
|
||||
|
||||
# Window separator
|
||||
set -g window-status-separator ""
|
||||
|
@ -46,12 +46,12 @@ set -g window-status-separator ""
|
|||
set -g status-justify centre
|
||||
|
||||
# Pane border
|
||||
set -g pane-border-bg default
|
||||
set -g pane-border-fg colour238
|
||||
# set -g pane-border-bg default
|
||||
# set -g pane-border-fg colour238
|
||||
|
||||
# Active pane border
|
||||
set -g pane-active-border-bg default
|
||||
set -g pane-active-border-fg colour39
|
||||
# set -g pane-active-border-bg default
|
||||
# set -g pane-active-border-fg colour39
|
||||
|
||||
# Pane number indicator
|
||||
set -g display-panes-colour colour233
|
||||
|
@ -62,13 +62,13 @@ set -g clock-mode-colour colour39
|
|||
set -g clock-mode-style 24
|
||||
|
||||
# Message
|
||||
set -g message-bg colour39
|
||||
set -g message-fg black
|
||||
# set -g message-bg colour39
|
||||
# set -g message-fg black
|
||||
|
||||
# Command message
|
||||
set -g message-command-bg colour233
|
||||
set -g message-command-fg black
|
||||
# set -g message-command-bg colour233
|
||||
# set -g message-command-fg black
|
||||
|
||||
# Mode
|
||||
set -g mode-bg colour39
|
||||
set -g mode-fg colour232
|
||||
# set -g mode-bg colour39
|
||||
# set -g mode-fg colour232
|
||||
|
|
Loading…
Reference in New Issue