This commit is contained in:
Barak Michener 2022-01-26 16:39:21 -08:00
parent a64bc16a23
commit f5638b6c81
6 changed files with 1860 additions and 4 deletions

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,4 @@
set -g VIRTUALFISH_VERSION 2.5.4
set -g VIRTUALFISH_PYTHON_EXEC /bin/python
source /usr/lib/python3.10/site-packages/virtualfish/virtual.fish
emit virtualfish_did_setup_plugins

View file

@ -1,5 +1,5 @@
set PATH ~/bin /bin /sbin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin ~/.cabal/bin /usr/lib/go/bin ~/.gem/ruby/1.9.1/bin $PATH
set PATH ~/bin ~/.go/bin /bin /sbin /usr/local/bin /usr/local/sbin /usr/bin /usr/sbin ~/.cabal/bin /usr/lib/go/bin ~/.gem/ruby/1.9.1/bin $PATH
set fish_greeting ""
. ~/.bash_aliases
. ~/.config/fish/fish_aliases.fish

View file

@ -0,0 +1,55 @@
alias :e='vi'
alias t='task'
alias em='emacs'
alias grep="grep --color=auto"
#alias screen="screen -R"
alias dvtm="dvtm -m \"^w\""
alias tm="tmux -2 attach"
alias ppjson="python -mjson.tool"
#alias tmux-pwn='tmux list-clients | sed "s|^\(/dev/ttys[0-9]\+\).*\[\([0-9]\+x[0-9]\+\).*$|\2 \1|" | sort -r -n | tail -n +2 | cut -d " " -f 2 | xargs -n 1 tmux detach-client -t'
# I can never remember the xclip options, so:
alias setclip='xclip -selection c'
alias getclip='xclip -selection clipboard -o'
#machines
alias puck="ssh -D 7777 -Y barak@puck.barakmich.com"
alias hero="ssh -D 7777 -Y barak@hero.barakmich.com"
alias hermia="ssh -Y barak@hermia.home.0b100.net"
#Cosmetic/useful
#alias naim="naim --noscreen"
alias wallall="wallall -p"
#alias cal="cal -3"
#alias google='surfraw google'
alias hd='od -Ax -tx1z -v'
alias gcal='gcalcli'
#Sysdadmin
alias aptsearch="aptitude search"
alias pki="pk i"
alias pks="pk s"
alias openports="lsof -i 4 -n"
alias saupdate="sa-learn --mbox --spam ~/mail/spam"
alias pshosers="ps axeo pcpu,pid,user,command | sort -k 1 -r | head -11 "
alias memhosers="ps axeo size,pcpu,pid,user,command | sort -n -r | head -11 "
alias psx="ps auxwww | grep $1"
alias blaze="bazel"
alias pb='curl -F c=@- https://busb.us/'
alias pburl='curl -F c=@- https://busb.us/u'
#work
alias totemp="cd `pwd | sed 's/controllers/templates/'`"
alias tocont="cd `pwd | sed 's/templates/controllers/'`"
alias kubecat="awk 'FNR==1 && NR!=1 {print \"---\"}{print}'"
#Some orly aliases
alias yarly="orly -y"
alias nowai="orly -n"
alias srsly="orly -s"
#Funnies
alias whothefuckis='finger'
alias whoami="echo 24601"

View file

@ -0,0 +1,30 @@
# 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_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_key_bindings:fish_default_key_bindings
SETUVAR fish_pager_color_completion:\x1d
SETUVAR fish_pager_color_description:B3A06D\x1eyellow
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan

View file

@ -31,9 +31,14 @@ function fish_prompt --description 'Write out the prompt'
set -g __fish_prompt_cwd (set_color $fish_color_cwd)
end
echo -n -s (set_color green) "$USER" (set_color normal) @ (set_color green) "$__fish_prompt_hostname" (set_color normal) ':[' "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" ']'
if set -q VIRTUAL_ENV
echo -n -s (set_color -b blue white) "(" (basename "$VIRTUAL_ENV") ")" (set_color normal) " "
end
echo -n -s (set_color blue) "(" (set_color yellow) (date "+%H:%M") (set_color blue) ")[" (set_color green) "$USER@$__fish_prompt_hostname " (set_color cyan) "$__fish_prompt_cwd" (prompt_pwd) "$__fish_prompt_normal" (set_color blue) ']'
echo
echo -n '> '
echo -n '$ '
end
end