mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-30 12:33:37 +08:00
13 lines
279 B
Fish
13 lines
279 B
Fish
|
# name: mtahmed
|
||
|
# Left prompt:
|
||
|
# - First 10 characters of hostname if ssh'ed
|
||
|
# - Current directory name
|
||
|
# - ─╼
|
||
|
# Right prompt:
|
||
|
# - Exit code of the previous command
|
||
|
function fish_right_prompt
|
||
|
set -l last_status $status
|
||
|
set_color $fish_color_cwd
|
||
|
printf $last_status
|
||
|
end
|