mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 16:51:34 +02:00
fish: setup colors; update aliases
This commit is contained in:
parent
2b86db67c3
commit
02b4623c31
3 changed files with 41 additions and 8 deletions
|
|
@ -7,16 +7,13 @@ alias du "du -h"
|
|||
alias chmox "chmod +x"
|
||||
alias ":q" exit
|
||||
|
||||
alias g git
|
||||
alias d docker
|
||||
alias dcm "docker compose"
|
||||
|
||||
alias ... "cd ../.."
|
||||
alias .3 "cd ../../.."
|
||||
|
||||
alias killbt "rfkill block bluetooth"
|
||||
alias unkillbt "rfkill unblock bluetooth"
|
||||
|
||||
alias g git
|
||||
if type -q hledger; alias f hledger; end
|
||||
if type -q jj; alias j jj; end
|
||||
if type -q todo.sh; alias t todo.sh; end
|
||||
|
|
|
|||
34
config/fish/conf.d/colors.fish
Normal file
34
config/fish/conf.d/colors.fish
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
status is-interactive; or exit
|
||||
|
||||
set -l foreground c0caf5
|
||||
set -l selection 283457
|
||||
set -l comment 565f89
|
||||
set -l red f7768e
|
||||
set -l orange ff9e64
|
||||
set -l yellow e0af68
|
||||
set -l green 9ece6a
|
||||
set -l purple 9d7cd8
|
||||
set -l cyan 7dcfff
|
||||
set -l pink bb9af7
|
||||
|
||||
set -g fish_color_normal $foreground
|
||||
set -g fish_color_command $cyan
|
||||
set -g fish_color_keyword $pink
|
||||
set -g fish_color_quote $yellow
|
||||
set -g fish_color_redirection $foreground
|
||||
set -g fish_color_end $orange
|
||||
set -g fish_color_option $pink
|
||||
set -g fish_color_error $red
|
||||
set -g fish_color_param $purple
|
||||
set -g fish_color_comment $comment
|
||||
set -g fish_color_selection --background=$selection
|
||||
set -g fish_color_search_match --background=$selection
|
||||
set -g fish_color_operator $green
|
||||
set -g fish_color_escape $pink
|
||||
set -g fish_color_autosuggestion $comment
|
||||
|
||||
set -g fish_pager_color_progress $comment
|
||||
set -g fish_pager_color_prefix $cyan
|
||||
set -g fish_pager_color_completion $foreground
|
||||
set -g fish_pager_color_description $comment
|
||||
set -g fish_pager_color_selected_background --background=$selection
|
||||
|
|
@ -1,8 +1,10 @@
|
|||
function sortw -d "Wrapper around sort to save file after sorting"
|
||||
function sortw -d "Wrapper around sort that saves file after sorting"
|
||||
if test (count $argv) -eq 0
|
||||
echo "No file provided"
|
||||
return 1
|
||||
else
|
||||
sort
|
||||
else if test (count $argv) -eq 1
|
||||
command sort $argv[1] -o $argv[1]
|
||||
else
|
||||
echo "I don't know what to do, too many arguments"
|
||||
return 2
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue