From 4a1c513c6a0bbd457901a536f7027328ad2d1745 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Fri, 24 Apr 2020 02:12:00 -0400 Subject: switched to fish shell --- .config/fish/config.fish | 114 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 .config/fish/config.fish (limited to '.config/fish/config.fish') 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 -- cgit 1.4.1