mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-20 13:45:00 +08:00
Sample prompts: Rename prompts named after a single person
Unless that person directly contributed the prompt. We name them after a feature - the Scales prompt feature a ">>>" which kinda looks like fish scales, the "Arrow" prompt starts with a prominent "➜". Naming them after people looks like an endorsement of that particular person, and like they are someone to look up to, especially when they aren't involved with the project. The "terlar" and "acidhub" prompts stay for now because they contributed the prompt themselves, they are also much less prominent.
This commit is contained in:
parent
635a2c13f1
commit
db9ac527af
|
@ -1,11 +1,11 @@
|
|||
# name: Robbyrussell
|
||||
# name: Arrow
|
||||
# author: Bruno Ferreira Pinto, Pawel Zubrycki
|
||||
|
||||
function fish_prompt
|
||||
set -l __last_command_exit_status $status
|
||||
|
||||
if not set -q -g __fish_robbyrussell_functions_defined
|
||||
set -g __fish_robbyrussell_functions_defined
|
||||
if not set -q -g __fish_arrow_functions_defined
|
||||
set -g __fish_arrow_functions_defined
|
||||
function _git_branch_name
|
||||
set -l branch (git symbolic-ref --quiet HEAD 2>/dev/null)
|
||||
if set -q branch[1]
|
|
@ -1,4 +1,4 @@
|
|||
# name: Sorin
|
||||
# name: Scales
|
||||
# author: Leonard Hecker <leonard@hecker.io>
|
||||
|
||||
# Sources:
|
Loading…
Reference in New Issue
Block a user