summary refs log tree commit diff stats
path: root/.config
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2020-04-24 02:12:00 -0400
committerBen Morrison <ben@gbmor.dev>2020-04-25 00:40:56 -0400
commit4a1c513c6a0bbd457901a536f7027328ad2d1745 (patch)
tree30e4d6a26f307e69df35cf56fea3d50a3161dea9 /.config
parentdb10c0db4d21e3dd3461f0bd8a75c6f6ecbc6d13 (diff)
downloaddogfiles-4a1c513c6a0bbd457901a536f7027328ad2d1745.tar.gz
switched to fish shell
Diffstat (limited to '.config')
-rw-r--r--.config/fish/config.fish114
-rw-r--r--.config/fish/fish_variables32
2 files changed, 146 insertions, 0 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
new file mode 100644
index 0000000..9fafdd4
--- /dev/null
+++ b/.config/fish/config.fish
@@ -0,0 +1,114 @@
+function vim
+  command nvim $argv
+end
+function less
+  command $PAGER $argv
+end
+function more
+  command $PAGER $argv
+end
+function ls
+  command lsd $argv
+end
+function pip
+  command /usr/bin/pip3 $argv
+end
+function dotfiles
+  command /usr/bin/git --git-dir /home/ahriman/.dotfiles/ --work-tree /home/ahriman $argv
+end
+function pkgs
+  command /usr/bin/apt search --names-only $argv
+end
+function cat
+  command bat $argv
+end
+
+# misc dev   commandes
+function rebase
+  command interactive-rebase-tool $argv
+end
+#  command rust-musl-builder docker run --rm -it -v $(pwd) /home/rust/src ekidd/rust-musl-builder
+function cargogen
+  command cargo generate --git https //github.com/gbmor/cargo-template --name $argv
+end
+function python
+  command python3 $argv
+end
+
+# some   commandes for cd use
+function devgo
+  cd ~/dev/go/src/github.com
+end
+function devgog
+  cd ~/dev/go/src/github.com/gbmor
+end
+function devg
+  cd ~/dev/github/
+end
+function devgg
+  cd ~/dev/github/gbmor
+end
+function devggf
+  cd ~/dev/github/gbmor-forks
+end
+function devgl
+  cd ~/dev/gitlab
+end
+function devk
+  cd ~/dev/keybase
+end
+function devt
+  cd ~/dev/tmp
+end
+function devtilde
+  cd ~/dev/tildegit
+end
+
+# misc environment modifications
+set -x VISUAL nvim
+set -x EDITOR $VISUAL
+set -x PAGER "/home/ahriman/.cargo/bin/bat -p"
+set -x BROWSER firefox
+set -x TERM xterm-256color
+set -x MANPATH /usr/local/man $MANPATH
+set -x PKG_CONFIG_PATH /usr/lib/x86_64-linux-gnu/pkgconfig /usr/local/lib/x86_64-linux-gnu/pkgconfig /usr/share/pkgconfig
+
+set -x GDK_BACKEND x11
+set -x RANGER_LOAD_DEFAULT_RC false
+
+# path modifications
+set -x PATH $HOME/.emacs.d/bin $PATH
+set -x PATH /snap/bin $PATH
+set -x PATH $HOME/dev/go/bin $PATH
+set -x PATH $HOME/.local/bin $PATH
+set -x PATH $HOME/.cargo/bin $PATH
+set -x PATH $HOME/bin $PATH
+set -x PATH $HOME/.ghcup/bin $PATH
+set -x PATH /snap/bin $PATH
+set -x PATH $HOME/.gem/ruby/2.7.0/bin $PATH
+
+# hub, the github cli tool
+set -x HUB_CONFIG $HOME/.config/hub
+set -x HUB_PROTOCOL ssh
+
+# rust env
+set -x RUST_SRC_PATH ~/.multirust/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust
+
+# go env
+set -x GOPATH $HOME/dev/go
+set -x GTAGSLABEL ctags
+set -x GO111MODULE on
+set -x GOMAXPROCS 4
+function godoc
+  command godoc -v -index -http  6060
+end
+
+# clojure
+set -x BOOT_CLOJURE_NAME org.clojure/clojure
+set -x BOOT_VERSION 2.8.3
+set -x BOOT_CLOJURE_VERSION 1.8.0
+
+# shadowgate mud over ssl
+function shadowgate
+  command shadowgate socat TCP-LISTEN 8080,fork,reuseaddr OPENSSL shadowgate.org 8443
+end
diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables
new file mode 100644
index 0000000..41ccd62
--- /dev/null
+++ b/.config/fish/fish_variables
@@ -0,0 +1,32 @@
+# 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