Change fish prompt

This commit is contained in:
Leon Kowarschick 2020-05-01 21:02:35 +02:00
parent a4feef0935
commit ba37a146ac
11 changed files with 163 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{
"optOut": false,
"lastUpdateCheck": 1587976757501
"lastUpdateCheck": 1588333599760
}

View file

@ -4,12 +4,14 @@ fish_vi_key_bindings
alias ls=lsd
abbr --add --global vim nvim
abbr --add --global tsh trash
abbr --add --global clear "clear && ls"
#abbr --add --global clear "clear && ls"
abbr --add --global cxmonad "nvim /home/leon/.xmonad/lib/Config.hs"
tmux
if status is-interactive
and not set -q TMUX
exec tmux
end
abbr --add --global gaa "git add --all"
abbr --add --global gc "git commit -m "
@ -30,3 +32,12 @@ end
bind \ca run_stuff
# fff file manager cd on exit
function f
fff $argv
set -q XDG_CACHE_HOME; or set XDG_CACHE_HOME $HOME/.cache
cd (cat $XDG_CACHE_HOME/fff/.fff_d)
end
set -x EDITOR "nvim"
set -x FFF_TRASH_CMD "trash" # make fff's trash function use trash-cli

View file

@ -1 +0,0 @@
/home/leon/.local/share/omf/themes/agnoster/fish_prompt.fish

View file

@ -0,0 +1,67 @@
function fish_prompt
# Cache exit status
set -l last_status $status
set -l normal (set_color normal)
set -l white (set_color FFFFFF)
set -l turquoise (set_color 5fdfff)
set -l orange (set_color df5f00)
set -l hotpink (set_color df005f)
set -l blue (set_color blue)
set -l limegreen (set_color 87ff00)
set -l purple (set_color af5fff)
# Configure __fish_git_prompt
set -g __fish_git_prompt_char_stateseparator ' '
set -g __fish_git_prompt_color 5fdfff
set -g __fish_git_prompt_color_flags df5f00
set -g __fish_git_prompt_color_prefix white
set -g __fish_git_prompt_color_suffix white
set -g __fish_git_prompt_showdirtystate true
set -g __fish_git_prompt_showuntrackedfiles true
set -g __fish_git_prompt_showstashstate true
set -g __fish_git_prompt_show_informative_status true
set -l current_user (whoami)
set -l vi_mode (__fish_vi_mode_prompt_real)
set -l git_prompt (__fish_git_prompt " (%s)")
#(pwd|sed "s=$HOME=~=")
set -g fish_prompt_pwd_dir_length 1
echo -n $white'╭─'$vi_mode
echo -n $white'─'$hotpink$current_user$white' in '$limegreen(prompt_pwd)
echo -n $turquoise$git_prompt
if test $last_status -gt 0
echo -n ' '$hotpink$last_status
end
echo
echo -n $white'╰─λ '
echo -n $normal
end
function __fish_vi_mode_prompt_real
set -l turquoise (set_color 5fdfff)
set -l orange (set_color df5f00)
switch $fish_bind_mode
case insert
echo -n "─"
case default
echo -n $turquoise'N'
case visual
echo -n $orange'V'
case replace_one
echo -n $turquoise'R'
end
end
# needed so fish doesn't draw it by itself
function fish_mode_prompt
end
# ⌁

View file

@ -0,0 +1 @@
/home/leon/.local/share/omf/themes/lambda/fish_prompt.fish

View file

@ -0,0 +1,67 @@
function fish_prompt
# Cache exit status
set -l last_status $status
set -l normal (set_color normal)
set -l white (set_color FFFFFF)
set -l turquoise (set_color 5fdfff)
set -l orange (set_color df5f00)
set -l hotpink (set_color df005f)
set -l blue (set_color blue)
set -l limegreen (set_color 87ff00)
set -l purple (set_color af5fff)
# Configure __fish_git_prompt
set -g __fish_git_prompt_char_stateseparator ' '
set -g __fish_git_prompt_color 5fdfff
set -g __fish_git_prompt_color_flags df5f00
set -g __fish_git_prompt_color_prefix white
set -g __fish_git_prompt_color_suffix white
set -g __fish_git_prompt_showdirtystate true
set -g __fish_git_prompt_showuntrackedfiles true
set -g __fish_git_prompt_showstashstate true
set -g __fish_git_prompt_show_informative_status true
set -l current_user (whoami)
set -l vi_mode (__fish_vi_mode_prompt_real)
set -l git_prompt (__fish_git_prompt " (%s)")
#(pwd|sed "s=$HOME=~=")
set -g fish_prompt_pwd_dir_length 1
echo -n $white'╭─'$vi_mode
echo -n $white'─'$hotpink$current_user$white' in '$limegreen(prompt_pwd)
echo -n $turquoise$git_prompt
if test $last_status -gt 0
echo -n ' '$hotpink$last_status
end
echo
echo -n $white'╰─λ '
echo -n $normal
end
function __fish_vi_mode_prompt_real
set -l turquoise (set_color 5fdfff)
set -l orange (set_color df5f00)
switch $fish_bind_mode
case insert
echo -n "─"
case default
echo -n $turquoise'N'
case visual
echo -n $orange'V'
case replace_one
echo -n $turquoise'R'
end
end
# needed so fish doesn't draw it by itself
function fish_mode_prompt
end
# ⌁

View file

@ -6,5 +6,11 @@
config_version: 2
settings:
content.notifications:
https://joyofandroid.com: false
statusbar.widgets:
global:
- keypress
- url
- scroll
- history
- tabs
- progress

View file

@ -9,3 +9,4 @@ http://dbad-license.org/ DBAD by philsturgeon
https://github.com/rhysd/kiro-editor rhysd/kiro-editor: A terminal UTF-8 text editor written in Rust 📝🦀
http://brson.github.io/2016/11/30/starting-with-error-chain Starting a new Rust project right, with error-chain
https://docs.google.com/document/d/1SH-B4BkypsOB69B9e5HbTmhrlEHNq5M6-nuqIDzzOW4/edit#heading=h.r7oinwx5vtl9 Lebenslauf 2020 - Google Docs
https://github.com/elenapan/dotfiles elenapan/dotfiles: There is no place like ~/

View file

@ -1,8 +1,8 @@
[FileDialog]
history=file:///home/leon/coding/projects/pipr/target/release, file:///home/leon/Bilder/screenshots, file:///home/leon/coding/projects/pipr/target/x86_64-unknown-linux-musl/release, file:///home/leon/studium/Studium/Sem4/verteilteSysteme/Klausur2003, file:///home/leon, file:///home/leon/Downloads
lastVisited=file:///home/leon/Downloads
history=file:///home/leon/Bilder/screenshots, file:///home/leon/coding/projects/pipr/target/x86_64-unknown-linux-musl/release, file:///home/leon/studium/Studium/Sem4/verteilteSysteme/Klausur2003, file:///home/leon, file:///home/leon/Downloads
lastVisited=file:///home/leon
qtVersion=5.14.2
shortcuts=file:, file:///home/leon
sidebarWidth=98
treeViewHeader=@ByteArray(\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\x1\0\0\0\x3\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x2\x94\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xe6\0\0\0\x1\0\0\0\0\0\0\0?\0\0\0\x1\0\0\0\0\0\0\0@\0\0\0\x1\0\0\0\0\0\0\x1/\0\0\0\x1\0\0\0\0\0\0\x3\xe8\0\xff\xff\xff\xff)
viewMode=Detail
viewMode=List

View file

@ -151,6 +151,7 @@ myStartupHook = do
spawnOnce "nm-applet"
spawnOnce "xfce4-clipman"
spawnOnce "mailspring --background"
spawnOnce "redshift -P -O 5000"
spawn "xset r rate 300 50" -- make key repeat quicker
spawn "/home/leon/.config/polybar/launch.sh"
spawn "feh --bg-fill /home/leon/Bilder/wallpapers/mountains_with_clounds.jpg"

Binary file not shown.