Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 17 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,26 +125,28 @@ fi
## `~/.config/fish/config.fish`

```
if type -q theme.sh
if test -e ~/.theme_history
theme.sh (theme.sh -l|tail -n1)
end
if status is-interactive
if type -q theme.sh
if test -e ~/.theme_history
theme.sh (theme.sh -l|tail -n1)
end

# Optional
# Bind C-o to the last theme.
function last_theme
theme.sh (theme.sh -l|tail -n2|head -n1)
end
# Optional
# Bind C-o to the last theme.
function last_theme
theme.sh (theme.sh -l|tail -n2|head -n1)
end

bind \co last_theme
bind \co last_theme

alias th='theme.sh -i'
alias th='theme.sh -i'

# Interactively load a light theme
alias thl='theme.sh --light -i'
# Interactively load a light theme
alias thl='theme.sh --light -i'

# Interactively load a dark theme
alias thd='theme.sh --dark -i'
# Interactively load a dark theme
alias thd='theme.sh --dark -i'
end
end
```

Expand Down