mirror of
https://github.com/Steffo99/config-fish.git
synced 2024-12-22 14:54:23 +00:00
First commit
This commit is contained in:
commit
403734645e
6 changed files with 88 additions and 0 deletions
32
fish_variables
Normal file
32
fish_variables
Normal file
|
@ -0,0 +1,32 @@
|
|||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3100
|
||||
SETUVAR fish_color_autosuggestion:3a3a3a
|
||||
SETUVAR fish_color_cancel:normal
|
||||
SETUVAR fish_color_command:ffff00
|
||||
SETUVAR fish_color_comment:808080
|
||||
SETUVAR fish_color_cwd:008000
|
||||
SETUVAR fish_color_cwd_root:800000
|
||||
SETUVAR fish_color_end:ff5f00
|
||||
SETUVAR fish_color_error:ff0000
|
||||
SETUVAR fish_color_escape:00a6b2
|
||||
SETUVAR fish_color_history_current:normal
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_match:normal
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:00a6b2
|
||||
SETUVAR fish_color_param:ffffd7
|
||||
SETUVAR fish_color_quote:00d700
|
||||
SETUVAR fish_color_redirection:00ffd7
|
||||
SETUVAR fish_color_search_match:ffff00
|
||||
SETUVAR fish_color_selection:c0c0c0
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:00ff00
|
||||
SETUVAR fish_color_valid_path:normal
|
||||
SETUVAR fish_greeting:\x1d
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_completion:normal
|
||||
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
|
||||
SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
4
functions/cls.fish
Normal file
4
functions/cls.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Defined in - @ line 1
|
||||
function cls --wraps=clear --description 'alias cls clear'
|
||||
clear $argv;
|
||||
end
|
41
functions/fish_prompt.fish
Normal file
41
functions/fish_prompt.fish
Normal file
|
@ -0,0 +1,41 @@
|
|||
function fish_prompt
|
||||
set "STATUS" $status
|
||||
set 'UID' (id -u)
|
||||
|
||||
if test "$UID" -eq 0
|
||||
set_color brred
|
||||
else if test "$UID" -lt 1000
|
||||
set_color brpurple
|
||||
else if test "$UID" -ge 60000
|
||||
set_color brcyan
|
||||
else
|
||||
set_color green
|
||||
end
|
||||
echo -n "$USER"
|
||||
|
||||
set_color normal
|
||||
echo -n "@"(prompt_hostname)":"
|
||||
|
||||
if string match "/home/*" "$PWD" >/dev/null
|
||||
set_color brblue
|
||||
else
|
||||
set_color --bold ff7f00
|
||||
end
|
||||
echo -n (prompt_pwd)
|
||||
|
||||
if test $STATUS -ne 0
|
||||
set_color brred
|
||||
echo -n "$STATUS "
|
||||
else
|
||||
set_color normal
|
||||
if test "$UID" -eq 0
|
||||
echo -n "# "
|
||||
else
|
||||
echo -n "\$ "
|
||||
end
|
||||
end
|
||||
set_color normal
|
||||
|
||||
|
||||
|
||||
end
|
4
functions/la.fish
Normal file
4
functions/la.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Defined in - @ line 1
|
||||
function la --wraps='ls -a' --description 'alias la=ls -a'
|
||||
ls -a $argv;
|
||||
end
|
4
functions/ll.fish
Normal file
4
functions/ll.fish
Normal file
|
@ -0,0 +1,4 @@
|
|||
# Defined in - @ line 1
|
||||
function ll --wraps='ls -al' --description 'alias ll=ls -al'
|
||||
ls -al $argv;
|
||||
end
|
3
functions/proton.fish
Normal file
3
functions/proton.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function proton
|
||||
~/.steam/steam/steamapps/common/Proton\ 5.0/dist/bin/wine64 $argv
|
||||
end
|
Loading…
Reference in a new issue