commit ff02628cf2820885cca5b674047da589f00d7b2f Spenser Truex <web@spensertruex.com> 2019-11-07 17:14:00 -0800 Vi keybindings. Fix omf. Lots of configuration!
abbreviations.fish | 44 ++++++ aliases.fish | 1 + compatibility.fish | 15 ++ conf.d/omf.fish | 7 + config.fish | 78 +--------- errorlog | 269 ++++++++++++++++++++++++++++++++++ fish_variables | 77 ++++++++++ functions/breakit.fish | 5 + functions/f.fish | 4 + functions/fd.fish | 4 + functions/fed.fish | 4 + functions/feds.fish | 7 + functions/ff.fish | 4 + functions/fish_greeting.fish | 17 +++ functions/fish_prompt.1573187721.copy | 14 ++ functions/fish_prompt.fish | 1 + functions/fn.fish | 5 + functions/fr.fish | 4 + functions/ft.fish | 4 + functions/ghe.fish | 4 + functions/psr.fish | 12 ++ functions/ungron.fish | 4 + variables.fish | 8 + 23 files changed, 519 insertions(+), 73 deletions(-)
diff --git a/abbreviations.fish b/abbreviations.fish new file mode 100644 index 0000000..e84b035 --- /dev/null +++ b/abbreviations.fish @@ -0,0 +1,44 @@ +if status --is-interactive + # General aliases + abbr -a fsv funcsave # since fed is what I use for emacs funced + abbr -a sn sort -n + abbr -a hn head -n + + # Grep + # BAC: Before After Context, Blood Alcohol Content. + abbr -a gb g -B5 + abbr -a ga g -A5 + abbr -a gc g -C5 + abbr -a gpi g -i + abbr -a go g -o + abbr -a gp g + abbr -a gr g -R + abbr -a gn g -n + + + abbr -a pg ping duckduckgo.com + ## Aliases from my Bash. + abbr wifi cd /home/jose/bin/iw-wrapper/\; ./internet.pl + abbr emq emacs -Q + # Aliases from my Eshell. + # abbr -a ain apt-get update; apt-get upgrade; apt-get install + abbr -a ein emerge --ask + abbr -a ese emerge --search + + # misspellings + abbr -a os ls + abbr -a dispath-conf dispatch-conf + abbr -a laod load + abbr -a suod sudo + abbr -a usod sudo + abbr -a usdo sudo + + # abbr -a pin sudo pacman -Syu; pacman -S + abbr -a sl ls + abbr -a xs ssh root@spensertruex.com + abbr -a zgc git clone + # abbr -a zin sudo zypper update; sudo zypper in + abbr -a zs /sudo:root@hp:/ + abbr -a zwic wifi --connect + abbr -a - 'cd -' +end diff --git a/aliases.fish b/aliases.fish new file mode 100644 index 0000000..b51c808 --- /dev/null +++ b/aliases.fish @@ -0,0 +1 @@ +alias g grep diff --git a/compatibility.fish b/compatibility.fish new file mode 100644 index 0000000..afad80e --- /dev/null +++ b/compatibility.fish @@ -0,0 +1,15 @@ +# Fish sucks at compatibility, since it is not POSIX. + + +function fish_title + echo $argv[1] +end + +## Emacs +# if test -n "$EMACS" +# set -x TERM eterm-color +# end +# Really would like to have this... +# function fish_title +# true +# end diff --git a/conf.d/omf.fish b/conf.d/omf.fish new file mode 100644 index 0000000..3e0f6d6 --- /dev/null +++ b/conf.d/omf.fish @@ -0,0 +1,7 @@ +# Path to Oh My Fish install. +set -q XDG_DATA_HOME + and set -gx OMF_PATH "$XDG_DATA_HOME/omf" + or set -gx OMF_PATH "$HOME/.local/share/omf" + +# Load Oh My Fish configuration. +source $OMF_PATH/init.fish diff --git a/config.fish b/config.fish index 3930151..9d573e9 100644 --- a/config.fish +++ b/config.fish @@ -1,73 +1,5 @@ -# Aliases -## from my Bash -function emc - emacsclient -nca '' -end -function wifi - cd /home/jose/bin/iw-wrapper/; ./internet.pl -end -function em - emacs -end -function emq - emacs -Q -end -## from my Eshell -function ain - apt-get update; apt-get upgrade; apt-get install -end -function ein - emerge --ask -end -function ese - emerge --search -end -function os - ls -end -function pin - sudo pacman -Syu; pacman -S -end -function sl - ls -end -function xs - ssh root@spensertruex.com -end -function zgc - git clone -end -function zin - sudo zypper update; sudo zypper in -end -function zs - /sudo:root@hp:/ -end -function zwic - wifi --connect -end -function zsu - # /sudo:: -end -function zsudo - # /sudo:root@hp:/ -end -function zxd - xinput --disable -end -function zxe - xinput --enable -end -function zxl - xinput --list -end - -# emacs ansi-term support -if test -n "$EMACS" - set -x TERM eterm-color -end - -# this function may be required by emacs. -function fish_title - true -end +set -e fish_greeting # Using a function instead. +source "$HOME/.config/fish/variables.fish" +source "$HOME/.config/fish/aliases.fish" +source "$HOME/.config/fish/abbreviations.fish" +source "$HOME/.config/fish/compatibility.fish" diff --git a/errorlog b/errorlog new file mode 100644 index 0000000..1027032 --- /dev/null +++ b/errorlog @@ -0,0 +1,269 @@ + Invalid argument: '' +fish: Unknown command SETUVAR +./fish_variables (line 3): +SETUVAR EDITOR:emacs +^ +fish: Unknown command SETUVAR +./fish_variables (line 4): +SETUVAR __fish_init_2_39_8:\x1d +^ +fish: Unknown command SETUVAR +./fish_variables (line 5): +SETUVAR __fish_init_2_3_0:\x1d +^ +fish: Unknown command SETUVAR +./fish_variables (line 6): +SETUVAR __fish_init_3_x:\x1d +^ +fish: Unknown command SETUVAR +./fish_variables (line 7): +SETUVAR _fish_abbr__2D_:cd\x20\x2d +^ +fish: Unknown command SETUVAR +./fish_variables (line 8): +SETUVAR _fish_abbr_ain:apt\x2dget\x20update +^ +fish: Unknown command SETUVAR +./fish_variables (line 9): +SETUVAR _fish_abbr_eeval:e\x20\x2d\x2deval +^ +fish: Unknown command SETUVAR +./fish_variables (line 10): +SETUVAR _fish_abbr_ein:emerge\x20\x2d\x2dask +^ +fish: Unknown command SETUVAR +./fish_variables (line 11): +SETUVAR _fish_abbr_em:emacs +^ +fish: Unknown command SETUVAR +./fish_variables (line 12): +SETUVAR _fish_abbr_emasc:emacs +^ +fish: Unknown command SETUVAR +./fish_variables (line 13): +SETUVAR _fish_abbr_emc:emacsclient\x20\x2dnca\x20\x27\x27 +^ +fish: Unknown command SETUVAR +./fish_variables (line 14): +SETUVAR _fish_abbr_emcas:emacs +^ +fish: Unknown command SETUVAR +./fish_variables (line 15): +SETUVAR _fish_abbr_emk:emacs\x20\x2d\x2deval\x20\x27\x28kill\x2demacs\x29\x27 +^ +fish: Unknown command SETUVAR +./fish_variables (line 16): +SETUVAR _fish_abbr_emq:emacs\x20\x2dQ +^ +fish: Unknown command SETUVAR +./fish_variables (line 17): +SETUVAR _fish_abbr_ese:emerge\x20\x2d\x2dsearch +^ +fish: Unknown command SETUVAR +./fish_variables (line 18): +SETUVAR _fish_abbr_ga:g\x20\x2dA5 +^ +fish: Unknown command SETUVAR +./fish_variables (line 19): +SETUVAR _fish_abbr_gb:g\x20\x2dB5 +^ +fish: Unknown command SETUVAR +./fish_variables (line 20): +SETUVAR _fish_abbr_gc:g\x20\x2dC5 +^ +fish: Unknown command SETUVAR +./fish_variables (line 21): +SETUVAR _fish_abbr_gn:g\x20\x2dn +^ +fish: Unknown command SETUVAR +./fish_variables (line 22): +SETUVAR _fish_abbr_go:g\x20\x2do +^ +fish: Unknown command SETUVAR +./fish_variables (line 23): +SETUVAR _fish_abbr_gp:g +^ +fish: Unknown command SETUVAR +./fish_variables (line 24): +SETUVAR _fish_abbr_gpi:g\x20\x2di +^ +fish: Unknown command SETUVAR +./fish_variables (line 25): +SETUVAR _fish_abbr_gr:g\x20\x2dR +^ +fish: Unknown command SETUVAR +./fish_variables (line 26): +SETUVAR _fish_abbr_laod:load +^ +fish: Unknown command SETUVAR +./fish_variables (line 27): +SETUVAR _fish_abbr_load:load +^ +fish: Unknown command SETUVAR +./fish_variables (line 28): +SETUVAR _fish_abbr_ls:ls +^ +fish: Unknown command SETUVAR +./fish_variables (line 29): +SETUVAR _fish_abbr_os:ls +^ +fish: Unknown command SETUVAR +./fish_variables (line 30): +SETUVAR _fish_abbr_pg:ping\x20duckduckgo\x2ecom +^ +fish: Unknown command SETUVAR +./fish_variables (line 31): +SETUVAR _fish_abbr_pin:sudo\x20pacman\x20\x2dSyu +^ +fish: Unknown command SETUVAR +./fish_variables (line 32): +SETUVAR _fish_abbr_psg:ps\x20\x2de\x20o\x20pid\x2ccmd\x20\x7c\x20grep\x20\x2dPo\x20\x27\x2e\x7b0\x2c80\x7d\x27\x20\x7c\x20grep\x20\x2dPi +^ +fish: Unknown command SETUVAR +./fish_variables (line 33): +SETUVAR _fish_abbr_sl:ls +^ +fish: Unknown command SETUVAR +./fish_variables (line 34): +SETUVAR _fish_abbr_wifi:cd\x20/home/jose/bin/iw\x2dwrapper/\x3b\x20\x2e/internet\x2epl +^ +fish: Unknown command SETUVAR +./fish_variables (line 35): +SETUVAR _fish_abbr_xs:ssh\x20root\x40spensertruex\x2ecom +^ +fish: Unknown command SETUVAR +./fish_variables (line 36): +SETUVAR _fish_abbr_zgc:git\x20clone +^ +fish: Unknown command SETUVAR +./fish_variables (line 37): +SETUVAR _fish_abbr_zin:sudo\x20zypper\x20update +^ +fish: Unknown command SETUVAR +./fish_variables (line 38): +SETUVAR _fish_abbr_zs:/sudo\x3aroot\x40hp\x3a/ +^ +fish: Unknown command SETUVAR +./fish_variables (line 39): +SETUVAR _fish_abbr_zwic:wifi\x20\x2d\x2dconnect +^ +fish: Unknown command SETUVAR +./fish_variables (line 40): +SETUVAR _fish_abbr_zxd:xinput\x20\x2d\x2ddisable +^ +fish: Unknown command SETUVAR +./fish_variables (line 41): +SETUVAR _fish_abbr_zxe:xinput\x20\x2d\x2denable +^ +fish: Unknown command SETUVAR +./fish_variables (line 42): +SETUVAR _fish_abbr_zxl:xinput\x20\x2d\x2dlist +^ +fish: Unknown command SETUVAR +./fish_variables (line 43): +SETUVAR fish_color_autosuggestion:555\x1ebrblack +^ +fish: Unknown command SETUVAR +./fish_variables (line 44): +SETUVAR fish_color_cancel:\x2dr +^ +fish: Unknown command SETUVAR +./fish_variables (line 45): +SETUVAR fish_color_command:005fd7 +^ +fish: Unknown command SETUVAR +./fish_variables (line 46): +SETUVAR fish_color_comment:990000 +^ +fish: Unknown command SETUVAR +./fish_variables (line 47): +SETUVAR fish_color_cwd:green +^ +fish: Unknown command SETUVAR +./fish_variables (line 48): +SETUVAR fish_color_cwd_root:red +^ +fish: Unknown command SETUVAR +./fish_variables (line 49): +SETUVAR fish_color_end:009900 +^ +fish: Unknown command SETUVAR +./fish_variables (line 50): +SETUVAR fish_color_error:red\x1e\x2d\x2dbold +^ +fish: Unknown command SETUVAR +./fish_variables (line 51): +SETUVAR fish_color_escape:00a6b2 +^ +fish: Unknown command SETUVAR +./fish_variables (line 52): +SETUVAR fish_color_history_current:\x2d\x2dbold +^ +fish: Unknown command SETUVAR +./fish_variables (line 53): +SETUVAR fish_color_host:normal +^ +fish: Unknown command SETUVAR +./fish_variables (line 54): +SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue +^ +fish: Unknown command SETUVAR +./fish_variables (line 55): +SETUVAR fish_color_normal:normal +^ +fish: Unknown command SETUVAR +./fish_variables (line 56): +SETUVAR fish_color_operator:00a6b2 +^ +fish: Unknown command SETUVAR +./fish_variables (line 57): +SETUVAR fish_color_param:00afff +^ +fish: Unknown command SETUVAR +./fish_variables (line 58): +SETUVAR fish_color_quote:999900 +^ +fish: Unknown command SETUVAR +./fish_variables (line 59): +SETUVAR fish_color_redirection:00afff +^ +fish: Unknown command SETUVAR +./fish_variables (line 60): +SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack +^ +fish: Unknown command SETUVAR +./fish_variables (line 61): +SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack +^ +fish: Unknown command SETUVAR +./fish_variables (line 62): +SETUVAR fish_color_status:red +^ +fish: Unknown command SETUVAR +./fish_variables (line 63): +SETUVAR fish_color_user:brgreen +^ +fish: Unknown command SETUVAR +./fish_variables (line 64): +SETUVAR fish_color_valid_path:\x2d\x2dunderline +^ +fish: Unknown command SETUVAR +./fish_variables (line 65): +SETUVAR fish_key_bindings:fish_default_key_bindings +^ +fish: Unknown command SETUVAR +./fish_variables (line 66): +SETUVAR fish_pager_color_completion:\x1d +^ +fish: Unknown command SETUVAR +./fish_variables (line 67): +SETUVAR fish_pager_color_description:B3A06D\x1eyellow +^ +fish: Unknown command SETUVAR +./fish_variables (line 68): +SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline +^ +fish: Unknown command SETUVAR +./fish_variables (line 69): +SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan +^ diff --git a/fish_variables b/fish_variables new file mode 100644 index 0000000..786fdc4 --- /dev/null +++ b/fish_variables @@ -0,0 +1,77 @@ +# This file contains fish universal variable definitions. +# VERSION: 3.0 +SETUVAR EDITOR:emacs +SETUVAR __fish_init_2_39_8:\x1d +SETUVAR __fish_init_2_3_0:\x1d +SETUVAR __fish_init_3_x:\x1d +SETUVAR _fish_abbr__2D_:cd\x20\x2d +SETUVAR _fish_abbr_ain:apt\x2dget\x20update +SETUVAR _fish_abbr_dispath_2D_conf:dispatch\x2dconf +SETUVAR _fish_abbr_eeval:e\x20\x2d\x2deval +SETUVAR _fish_abbr_ein:emerge\x20\x2d\x2dask +SETUVAR _fish_abbr_em:emacs +SETUVAR _fish_abbr_emasc:emacs +SETUVAR _fish_abbr_emc:emacsclient\x20\x2dnca\x20\x27\x27 +SETUVAR _fish_abbr_emcas:emacs +SETUVAR _fish_abbr_emk:emacs\x20\x2d\x2deval\x20\x27\x28kill\x2demacs\x29\x27 +SETUVAR _fish_abbr_emq:emacs\x20\x2dQ +SETUVAR _fish_abbr_ese:emerge\x20\x2d\x2dsearch +SETUVAR _fish_abbr_fsv:funcsave +SETUVAR _fish_abbr_ga:g\x20\x2dA5 +SETUVAR _fish_abbr_gb:g\x20\x2dB5 +SETUVAR _fish_abbr_gc:g\x20\x2dC5 +SETUVAR _fish_abbr_gn:g\x20\x2dn +SETUVAR _fish_abbr_go:g\x20\x2do +SETUVAR _fish_abbr_gp:g +SETUVAR _fish_abbr_gpi:g\x20\x2di +SETUVAR _fish_abbr_gr:g\x20\x2dR +SETUVAR _fish_abbr_hn:head\x20\x2dn +SETUVAR _fish_abbr_laod:load +SETUVAR _fish_abbr_load:load +SETUVAR _fish_abbr_ls:ls +SETUVAR _fish_abbr_os:ls +SETUVAR _fish_abbr_pg:ping\x20duckduckgo\x2ecom +SETUVAR _fish_abbr_pin:sudo\x20pacman\x20\x2dSyu +SETUVAR _fish_abbr_psg:ps\x20\x2de\x20o\x20pid\x2ccmd\x20\x7c\x20grep\x20\x2dPo\x20\x27\x2e\x7b0\x2c80\x7d\x27\x20\x7c\x20grep\x20\x2dPi +SETUVAR _fish_abbr_sl:ls +SETUVAR _fish_abbr_sn:sort\x20\x2dn +SETUVAR _fish_abbr_suod:sudo +SETUVAR _fish_abbr_usdo:sudo +SETUVAR _fish_abbr_usod:sudo +SETUVAR _fish_abbr_wifi:cd\x20/home/jose/bin/iw\x2dwrapper/\x3b\x20\x2e/internet\x2epl +SETUVAR _fish_abbr_xs:ssh\x20root\x40spensertruex\x2ecom +SETUVAR _fish_abbr_zgc:git\x20clone +SETUVAR _fish_abbr_zin:sudo\x20zypper\x20update +SETUVAR _fish_abbr_zs:/sudo\x3aroot\x40hp\x3a/ +SETUVAR _fish_abbr_zwic:wifi\x20\x2d\x2dconnect +SETUVAR _fish_abbr_zxd:xinput\x20\x2d\x2ddisable +SETUVAR _fish_abbr_zxe:xinput\x20\x2d\x2denable +SETUVAR _fish_abbr_zxl:xinput\x20\x2d\x2dlist +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:red\x1e\x2d\x2dbold +SETUVAR fish_color_escape:00a6b2 +SETUVAR fish_color_history_current:\x2d\x2dbold +SETUVAR fish_color_host:normal +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:\x1d +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 diff --git a/functions/breakit.fish b/functions/breakit.fish new file mode 100644 index 0000000..97451c0 --- /dev/null +++ b/functions/breakit.fish @@ -0,0 +1,5 @@ +function breakit + echo "frob" + breakpoint + echo "flollop" +end diff --git a/functions/f.fish b/functions/f.fish new file mode 100644 index 0000000..bc7ecd5 --- /dev/null +++ b/functions/f.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.rf4riy/f.fish @ line 2 +function f --description 'find, but efficiently.' + find -O3 $argv +end diff --git a/functions/fd.fish b/functions/fd.fish new file mode 100644 index 0000000..19285f9 --- /dev/null +++ b/functions/fd.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.sIBsES/fd.fish @ line 2 +function fd --description 'find directory' + f -type d $argv +end diff --git a/functions/fed.fish b/functions/fed.fish new file mode 100644 index 0000000..f9a9570 --- /dev/null +++ b/functions/fed.fish @@ -0,0 +1,4 @@ +# Defined in /home/jose/.config/fish/functions/fed.fish @ line 1 +function fed + funced -e "emacsclient -a ''" $argv +end diff --git a/functions/feds.fish b/functions/feds.fish new file mode 100644 index 0000000..964c91f --- /dev/null +++ b/functions/feds.fish @@ -0,0 +1,7 @@ +# Defined in /tmp/fish.1oy9m6/feds.fish @ line 1 +function feds + + # they are coming to get you + fed $arvg + funcsave $argv +end diff --git a/functions/ff.fish b/functions/ff.fish new file mode 100644 index 0000000..b3e839b --- /dev/null +++ b/functions/ff.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.9eonrb/ff.fish @ line 2 +function ff + f -type f $argv +end diff --git a/functions/fish_greeting.fish b/functions/fish_greeting.fish new file mode 100644 index 0000000..329de0d --- /dev/null +++ b/functions/fish_greeting.fish @@ -0,0 +1,17 @@ +function fish_greeting + echo ' '(set_color F00)'___ + ___======____='(set_color FF7F00)'-'(set_color FF0)'-'(set_color FF7F00)'-='(set_color F00)') +/T \_'(set_color FF0)'--='(set_color FF7F00)'=='(set_color F00)') '(set_color red)(whoami)'@'(hostname)' +[ \ '(set_color FF7F00)'('(set_color FF0)'0'(set_color FF7F00)') '(set_color F00)'\~ \_'(set_color FF0)'-='(set_color FF7F00)'='(set_color F00)')'(set_color yellow)' Uptime:'(set_color white)(uptime | sed 's/.*up \([^,]*\), .*/\1/')(set_color red)' + \ / )J'(set_color FF7F00)'~~ \\'(set_color FF0)'-='(set_color F00)') Theme: '(set_color white)(echo $fish_theme)(set_color red)' + \\\\___/ )JJ'(set_color FF7F00)'~'(set_color FF0)'~~ '(set_color F00)'\) '(set_color yellow)'Version: '(set_color white)(echo $FISH_VERSION)(set_color red)' + \_____/JJJ'(set_color FF7F00)'~~'(set_color FF0)'~~ '(set_color F00)'\\ + '(set_color FF7F00)'/ '(set_color FF0)'\ '(set_color FF0)', \\'(set_color F00)'J'(set_color FF7F00)'~~~'(set_color FF0)'~~ '(set_color FF7F00)'\\ + (-'(set_color FF0)'\)'(set_color F00)'\='(set_color FF7F00)'|'(set_color FF0)'\\\\\\'(set_color FF7F00)'~~'(set_color FF0)'~~ '(set_color FF7F00)'L_'(set_color FF0)'_ + '(set_color FF7F00)'('(set_color F00)'\\'(set_color FF7F00)'\\) ('(set_color FF0)'\\'(set_color FF7F00)'\\\)'(set_color F00)'_ '(set_color FF0)'\=='(set_color FF7F00)'__ + '(set_color F00)'\V '(set_color FF7F00)'\\\\'(set_color F00)'\) =='(set_color FF7F00)'=_____ '(set_color FF0)'\\\\\\\\'(set_color FF7F00)'\\\\ + '(set_color F00)'\V) \_) '(set_color FF7F00)'\\\\'(set_color FF0)'\\\\JJ\\'(set_color FF7F00)'J\) + '(set_color F00)'/'(set_color FF7F00)'J'(set_color FF0)'\\'(set_color FF7F00)'J'(set_color F00)'T\\'(set_color FF7F00)'JJJ'(set_color F00)'J) + (J'(set_color FF7F00)'JJ'(set_color F00)'| \UUU) + (UU)'(set_color normal) +end diff --git a/functions/fish_prompt.1573187721.copy b/functions/fish_prompt.1573187721.copy new file mode 100644 index 0000000..87a59f6 --- /dev/null +++ b/functions/fish_prompt.1573187721.copy @@ -0,0 +1,14 @@ +function fish_prompt + set_color $fish_color_cwd + echo -n (prompt_pwd) + set_color normal + echo -n ":" + + + set_color purple + # https://stackoverflow.com/questions/24581793/ps1-prompt-in-fish-friendly-interactive-shell-show-git-branch + set -l git_branch (git branch ^/dev/null | sed -n '/\* /s///p') + echo -n (whoami)'@'(hostname)':'(prompt_pwd)'{'"$git_branch"'}' + set_color normal + echo -n ' $ ' +end diff --git a/functions/fish_prompt.fish b/functions/fish_prompt.fish new file mode 120000 index 0000000..2152768 --- /dev/null +++ b/functions/fish_prompt.fish @@ -0,0 +1 @@ +/home/jose/.local/share/omf/themes/gentoo/fish_prompt.fish \ No newline at end of file diff --git a/functions/fn.fish b/functions/fn.fish new file mode 100644 index 0000000..ca9506a --- /dev/null +++ b/functions/fn.fish @@ -0,0 +1,5 @@ +# Defined in /tmp/fish.d3xyle/fn.fish @ line 2 +function fn --argument -w f + + f -name $name $argv +end diff --git a/functions/fr.fish b/functions/fr.fish new file mode 100644 index 0000000..bb6b50a --- /dev/null +++ b/functions/fr.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.PQd53F/fr.fish @ line 1 +function fr --argument -w f -d Find a regex. + f -regex $regex $argv +end diff --git a/functions/ft.fish b/functions/ft.fish new file mode 100644 index 0000000..02af486 --- /dev/null +++ b/functions/ft.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.NVDKLc/ft.fish @ line 1 +function ft --argument -w f + f -name *.$ftype $argv +end diff --git a/functions/ghe.fish b/functions/ghe.fish new file mode 100644 index 0000000..62bcee2 --- /dev/null +++ b/functions/ghe.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.4Vke8I/ghe.fish @ line 1 +function ghe + gh equwal $argv +end diff --git a/functions/psr.fish b/functions/psr.fish new file mode 100644 index 0000000..005e6a6 --- /dev/null +++ b/functions/psr.fish @@ -0,0 +1,12 @@ +function __psr_show + ps -eo pid,comm | grep -Pi $argv +end +function psr -w grep -d "Use PS basically. psr -k/s REGEX or just psr for all." + argparse --name=psr "s/show" "k/kill" -- $argv or set none __psr_show $argv + set -l filter (__psr_show $argv) + if + echo '' {$filter} + else + kill {$filter | sort -n | head -n ((count $filter) / 2)} + end +end diff --git a/functions/ungron.fish b/functions/ungron.fish new file mode 100644 index 0000000..dbfeee5 --- /dev/null +++ b/functions/ungron.fish @@ -0,0 +1,4 @@ +# Defined in /tmp/fish.WJKIQF/ungron.fish @ line 1 +function ungron + gron --ungron $argv +end diff --git a/variables.fish b/variables.fish new file mode 100644 index 0000000..8d4beac --- /dev/null +++ b/variables.fish @@ -0,0 +1,8 @@ +# The options are: +# - fish_default_key_bindings +# - fish_emacs_key_bindings +# - or you can write your own +set --export SHELL /bin/fish +set -x GH_BASE_DIR "$HOME/src/" # iss44 +set -g fish_key_bindings fish_vi_key_bindings +set -g EDITOR emacs # For visual edits, use =C-x #= to end.