A theme for the 70s, makes fish even more powerful. It's equipped with a hell of a lot of nice functions and key bindings to speed up your workflow.
The philosophy behind dangerous theme:
You need an up-to-date fish shell version from github or a nightly build.
Non standard tools:
It's crucial to have vi mode enabled. Thus, execute
set -U fish_key_bindings fish_vi_key_bindings
before enabling the theme.
Redefine $dangerous_colors
with the set
command in order to change the
colors of the prompt.
Example:
set dangerous_colors 000000 333333 666666 ffffff ffff00 ff6600 ff0000 ff0033 3300ff 0000ff 00ffff
00ff00
Two color schemes for bright and dark environments are predefined. You can
enable them with day
and night
, respectively.
Commands that shouldn't appear in the command history are defined by a universal
list $dangerous_nocmdhist
. Default:
set -U dangerous_nocmdhist c d ll ls m s
Disable:
set -U dangerous_nogreeting
Reenable:
set -e dangerous_nogreeting
#
to show the number of
the session within the sessions list#
to
show the number of the bookmark#
to show the amount of
background jobs#
to
show the amount of weekly tasks#
to
show the amount of appointments#
to show the status value#
to show the status valueThe following shortcuts need vi-mode:
Style of segments can be toggled in NORMAL and in VISUAL mode with space bar
short
(shows username, short hostname and truncated path; recommended in
most cases)long
(shows username, full hostname and full path; useful for copy-paste
in ssh connections)none
(shows nothing except small delimiter; useful for small terminals)#
, the IP address is shown instead of the
hostname.$dangerous_pwdstyle
(if not set, defaults to
short long none
); note that changes to $dangerous_pwdstyle
keep persistant as it's
a universal variable.$pwd_style
is none
.Style of symbols can be toggled in NORMAL and in VISUAL mode with #
symbols
(shows status symbols)numbers
(shows numbers instead of symbols in left prompt as well as amount of changes in
right git prompt)Note, the format is username@hostname:pathname. Thus, you can cut
the whole string with your mouse and paste it into ssh
commands.
The function d
drops down a menu showing the history as enumerated list. Unlike
fish's builtin dirh
, d
does not show any duplicates. Enter a number to jump
to a directory within the list.
The following shortcuts need vi-mode:
H
in NORMAL mode to change present working directory to previous
working directory in history.L
in NORMAL mode to change present working directory to next working
directory in history.The function c
drops down a menu showing the command history as enumerated list similarly to
the d
function. Selections are also pasted into the X clipboard. It's possible
to load a command of a former prompt by giving the prompt line number as
argument.
A bookmark can be created with mark
. It can be removed with unmark
.
Bookmarks are universal and thus persistant.
A new shell automatically changes working directory on startup to newest bookmark.
m
is a function that drops down a menu showing the bookmarks as enumerated list
equivalently to d
.
The following shortcuts need vi mode:
m
in NORMAL mode.M
in NORMAL mode.The function edit-commandline
lets you edit the commandline with your editor.
It makes the commandline as powerful as your editor. If $EDITOR
is not set,
vi is used.
The following shortcut needs vi mode:
.
in NORMAL mode to edit commandline in editor.Shell session can be stored with s <session name>
. If a session with session name
already exists, the session with this name will be attached. If a session with
session name
is already active within another terminal, this terminal will be
focussed.
A list of available sessions can be shown with s
.
A session can be erased with s -e <session name>
.
Type s -d
to detach current session.
Just type wt <title>
.
Give me feedback if you ...