Updated config

This commit is contained in:
2024-02-01 20:59:19 +01:00
parent 8998a54e82
commit 973894cfab
16 changed files with 207 additions and 32 deletions

50
.config/fish/alias.fish Normal file
View File

@ -0,0 +1,50 @@
# Git
alias g "git"
alias gc "git clone"
alias gd "git diff"
alias gl "git log --oneline"
alias gp "git pull"
alias gs "git status"
alias home "git --git-dir=$HOME/.home/ --work-tree=$HOME"
# Go
alias gob "go build -v"
alias got "go test -v"
# Hyperfine
alias bench "hyperfine --shell=none"
# Neovim
alias e "nvim"
alias n "nvim"
# Pacman
alias p "pacman"
alias pi "sudo pacman -S"
alias pr "sudo pacman -Rs"
alias pu "sudo pacman -Syu"
# Tmux
alias t "tmux"
alias ta "tmux attach"
alias td "tmux detach"
alias tl "tmux ls"
alias tk "tmux kill-server"
# Systemctl
alias s "systemctl"
alias s+ "systemctl start"
alias s- "systemctl stop"
alias sl "systemctl list-units --type=service --state=running"
alias sld "systemctl list-unit-files --type=service --state=disabled"
alias sle "systemctl list-unit-files --type=service --state=enabled"
alias slt "systemctl list-timers"
alias ss "systemctl status"
# ...
alias cdp "cd ~/projects"
alias cls "clear"
alias hex "hexdump -C"
# Close all windows
alias closeall "wmctrl -l | awk '{print $1}' | xargs -rn1 wmctrl -ic"

11
.config/fish/config.fish Normal file
View File

@ -0,0 +1,11 @@
if status is-interactive
source $HOME/.config/fish/alias.fish
set -x LS_COLORS di=0:ln=0:so=0:pi=0:ex=0:bd=0:cd=0:su=0:sg=0:tw=0:ow=0
end
set -x GOPATH $HOME/.go
set -x EDITOR nvim
set -x LANG en_US.UTF-8
fish_add_path $GOPATH/bin
fish_add_path $HOME/.bin

View File

@ -0,0 +1,45 @@
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:707A8C
SETUVAR fish_color_cancel:\x2d\x2dreverse
SETUVAR fish_color_command:00ff00
SETUVAR fish_color_comment:5C6773
SETUVAR fish_color_cwd:73D0FF
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:F29E74
SETUVAR fish_color_error:FF3333
SETUVAR fish_color_escape:95E6CB
SETUVAR fish_color_gray:9ca0b0
SETUVAR fish_color_history_current:\x2d\x2dbold
SETUVAR fish_color_host:normal
SETUVAR fish_color_host_remote:\x1d
SETUVAR fish_color_keyword:\x1d
SETUVAR fish_color_match:F28779
SETUVAR fish_color_normal:CBCCC6
SETUVAR fish_color_operator:FFCC66
SETUVAR fish_color_option:\x1d
SETUVAR fish_color_param:ffffff
SETUVAR fish_color_quote:5fff00
SETUVAR fish_color_redirection:D4BFFF
SETUVAR fish_color_search_match:\x2d\x2dbackground\x3dFFCC66
SETUVAR fish_color_selection:\x2d\x2dbackground\x3dFFCC66
SETUVAR fish_color_status:red
SETUVAR fish_color_user:brgreen
SETUVAR fish_color_valid_path:\x1d
SETUVAR fish_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_background:\x1d
SETUVAR fish_pager_color_completion:normal
SETUVAR fish_pager_color_description:B3A06D
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
SETUVAR fish_pager_color_secondary_background:\x1d
SETUVAR fish_pager_color_secondary_completion:\x1d
SETUVAR fish_pager_color_secondary_description:\x1d
SETUVAR fish_pager_color_secondary_prefix:\x1d
SETUVAR fish_pager_color_selected_background:\x2d\x2dbackground\x3dFFCC66
SETUVAR fish_pager_color_selected_completion:\x1d
SETUVAR fish_pager_color_selected_description:\x1d
SETUVAR fish_pager_color_selected_prefix:\x1d
SETUVAR fish_prompt_pwd_dir_length:0
SETUVAR fish_user_paths:/home/eduard/\x2ego/bin\x1e/home/eduard/\x2ebin

View File

@ -0,0 +1,2 @@
function fish_greeting
end

View File

@ -0,0 +1,6 @@
function fish_prompt
set_color $fish_color_cwd
echo -n (prompt_pwd)
set_color normal
printf ' '
end

View File

@ -0,0 +1,3 @@
function ll
ls -l $argv
end

View File

@ -0,0 +1,7 @@
function ls
if command -q exa
exa -1 --icons=auto $argv
else
command ls $argv
end
end

View File

@ -0,0 +1,38 @@
fish_color_autosuggestion 707A8C
fish_color_cancel --reverse
fish_color_command 00ff00
fish_color_comment 5C6773
fish_color_cwd 73D0FF
fish_color_cwd_root red
fish_color_end F29E74
fish_color_error FF3333
fish_color_escape 95E6CB
fish_color_history_current --bold
fish_color_host normal
fish_color_host_remote
fish_color_keyword
fish_color_match F28779
fish_color_normal CBCCC6
fish_color_operator FFCC66
fish_color_option
fish_color_param ffffff
fish_color_quote 5fff00
fish_color_redirection D4BFFF
fish_color_search_match --background=FFCC66
fish_color_selection --background=FFCC66
fish_color_status red
fish_color_user brgreen
fish_color_valid_path
fish_pager_color_background
fish_pager_color_completion normal
fish_pager_color_description B3A06D
fish_pager_color_prefix 'normal' '--bold' '--underline'
fish_pager_color_progress 'brwhite' '--background=cyan'
fish_pager_color_secondary_background
fish_pager_color_secondary_completion
fish_pager_color_secondary_description
fish_pager_color_secondary_prefix
fish_pager_color_selected_background --background=FFCC66
fish_pager_color_selected_completion
fish_pager_color_selected_description
fish_pager_color_selected_prefix