Improved fish config
parent
9f3b7880d4
commit
5a08a0d681
|
@ -0,0 +1 @@
|
||||||
|
fish/fish_variables
|
|
@ -1,17 +1,56 @@
|
||||||
#!/usr/bin/fish
|
#!/usr/bin/fish
|
||||||
|
|
||||||
alias gclon "git clone (xclip -o)"
|
|
||||||
alias gpull "git pull origin master"
|
# Git aliases
|
||||||
alias gpush "git push --all origin"
|
|
||||||
alias glog "git log --oneline --all --graph"
|
alias glog "git log --oneline --all --graph"
|
||||||
|
|
||||||
|
# Misc aliases
|
||||||
alias icat "kitty +kitten icat --align left"
|
alias icat "kitty +kitten icat --align left"
|
||||||
|
alias ls lsd
|
||||||
|
|
||||||
|
|
||||||
|
# Python aliases
|
||||||
|
function mkvenv \
|
||||||
|
--description "Make a python venv"
|
||||||
|
# mkvenv <path>: make venv at path
|
||||||
|
# mkvenv <path> <prompt>: make venv at path and set prompt.
|
||||||
|
|
||||||
|
if test (count $argv) -eq 2
|
||||||
|
mkvenv $argv[1]
|
||||||
|
|
||||||
|
echo -n "Set venv prompt to "
|
||||||
|
set_color "green"
|
||||||
|
echo -n $argv[2]
|
||||||
|
set_color normal
|
||||||
|
echo
|
||||||
|
|
||||||
|
python -m venv --prompt=$argv[2] $argv[1]
|
||||||
|
else if test (count $argv) -eq 1
|
||||||
|
echo -n "Making virtualenv at "
|
||||||
|
set_color green
|
||||||
|
echo -n $argv[1]
|
||||||
|
set_color normal
|
||||||
|
echo
|
||||||
|
|
||||||
|
python -m venv $argv[1]
|
||||||
|
else
|
||||||
|
echo "Invalid number of arguments."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function venvon \
|
||||||
|
--description "Activate a python venv. If no args are provided, assume path is 'venv'"
|
||||||
|
if test (count $argv) -eq 0
|
||||||
|
source venv/bin/activate.fish
|
||||||
|
else if test (count $argv) -eq 1
|
||||||
|
source $argv[1]/bin/activate.fish
|
||||||
|
else
|
||||||
|
echo "Invalid number of arguments."
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Enable kitty command completion
|
# Enable kitty command completion
|
||||||
kitty + complete setup fish | source
|
kitty + complete setup fish | source
|
||||||
|
|
||||||
alias notbg "kitty --override background_opacity=1 --detach && exit"
|
|
||||||
|
|
||||||
set cfg $HOME/.config
|
|
||||||
set mnt /mnt/mark
|
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
# This file contains fish universal variable definitions.
|
|
||||||
# VERSION: 3.0
|
|
||||||
SETUVAR __fish_initialized:3100
|
|
||||||
SETUVAR fish_color_autosuggestion:555\x1ebrblack
|
|
||||||
SETUVAR fish_color_cancel:\x2dr
|
|
||||||
SETUVAR fish_color_command:005fd7
|
|
||||||
SETUVAR fish_color_comment:990000
|
|
||||||
SETUVAR fish_color_cwd:green
|
|
||||||
SETUVAR fish_color_cwd_root:red
|
|
||||||
SETUVAR fish_color_end:009900
|
|
||||||
SETUVAR fish_color_error:ff0000
|
|
||||||
SETUVAR fish_color_escape:00a6b2
|
|
||||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
|
||||||
SETUVAR fish_color_host:normal
|
|
||||||
SETUVAR fish_color_host_remote:yellow
|
|
||||||
SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
|
|
||||||
SETUVAR fish_color_normal:normal
|
|
||||||
SETUVAR fish_color_operator:00a6b2
|
|
||||||
SETUVAR fish_color_param:00afff
|
|
||||||
SETUVAR fish_color_quote:999900
|
|
||||||
SETUVAR fish_color_redirection:00afff
|
|
||||||
SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
|
||||||
SETUVAR fish_color_status:red
|
|
||||||
SETUVAR fish_color_user:brgreen
|
|
||||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
|
||||||
SETUVAR fish_greeting:
|
|
||||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
|
||||||
SETUVAR fish_pager_color_completion:\x1d
|
|
||||||
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
|
|
||||||
SETUVAR fish_user_paths:/home/mark/\x2egem/ruby/2\x2e7\x2e0/bin/
|
|
Loading…
Reference in New Issue