all repos — dotfiles @ a9e422d2ef1a8d780f3007a8d08f281036b87682

my *nix dotfiles

Add fish configs
Anirudh Oppiliappan x@icyphox.sh
Thu, 18 Jun 2020 09:07:50 +0530
commit

a9e422d2ef1a8d780f3007a8d08f281036b87682

parent

ea49998f6e8045dbad1de7d541498ac5666851ad

A config/fish/completions/j.fish

@@ -0,0 +1,9 @@

+complete -c j -f -r + +set -l paths "" + +for f in $MARKPATH/* + set -a paths (basename $f) +end + +complete -c j -a "$paths"
A config/fish/config.fish

@@ -0,0 +1,8 @@

+set fish_greeting + +set -gx PATH ~/bin ~/.local/bin /usr/local/bin /usr/bin /bin /sbin /usr/sbin /usr/X11R6/bin +set -gx EDITOR nvim +set -gx BROWSER iridium +set -gx PW_KEY x@icyphox.sh + +source ~/.config/fish/functions/marks.fish
A config/fish/functions/fish_prompt.fish

@@ -0,0 +1,12 @@

+function fish_prompt --description 'Write out the prompt' + set -l cyan (set_color cyan) + set -l prefix '▲' + + printf '\n' + set_color cyan + printf '%s' (prompt_pwd) + set_color normal + + printf '%s\n' (__fish_git_prompt) + printf '%s ' $prefix + end
A config/fish/functions/ga.fish

@@ -0,0 +1,4 @@

+# Defined in - @ line 1 +function ga --wraps='git add' --description 'alias ga=git add' + git add $argv; +end
A config/fish/functions/gc.fish

@@ -0,0 +1,4 @@

+# Defined in - @ line 1 +function gc --wraps='git commit -v -s' --description 'alias gc=git commit -v -s' + git commit -v -s $argv; +end
A config/fish/functions/gd.fish

@@ -0,0 +1,4 @@

+# Defined in - @ line 1 +function gd --wraps='git diff --minimal' --description 'alias gd=git diff --minimal' + git diff --minimal $argv; +end
A config/fish/functions/ggp.fish

@@ -0,0 +1,4 @@

+# Defined in /tmp/fish.8L7BWS/ggp.fish @ line 2 +function ggp + git push origin (git branch --show-current) +end
A config/fish/functions/gst.fish

@@ -0,0 +1,4 @@

+# Defined in /tmp/fish.9tYpdR/gst.fish @ line 2 +function gst --wraps='git status --short' --description 'alias gst=git status --short' + git status --short $argv; +end
A config/fish/functions/ls.fish

@@ -0,0 +1,4 @@

+# Defined in - @ line 1 +function ls --wraps='colorls -G' --description 'alias ls=colorls -G' + colorls -G $argv; +end
A config/fish/functions/m.fish

@@ -0,0 +1,4 @@

+# Defined in - @ line 1 +function m --wraps=nail --description 'alias m=nail' + nail $argv; +end
A config/fish/functions/marks.fish

@@ -0,0 +1,20 @@

+set -gx MARKPATH ~/.marks + +function mark + mkdir -p $MARKPATH + ln -s $PWD $MARKPATH/$argv +end + +function unmark + rm -i $MARKPATH/(basename $PWD) +end + +function marks + for f in $MARKPATH/* + printf '%s → %s\n' (basename $f) (readlink $f) + end +end + +function j -d 'The based jumper.' + cd (realpath $MARKPATH/$argv) 2>/dev/null || printf '%s\n' "error: no such mark $argv" +end
A config/fish/functions/tb.fish

@@ -0,0 +1,4 @@

+# Defined in /tmp/fish.2y8yjw/tb.fish @ line 1 +function tb + nc termbin.com 9999 | xclip -sel c +end
A config/fish/functions/vim.fish

@@ -0,0 +1,4 @@

+# Defined in - @ line 1 +function vim --wraps=nvim --description 'alias vim=nvim' + nvim $argv; +end