small pixel drawing of a pufferfish dotfiles

Remove fish, add ashrc
j3s j3s@c3f.net
Wed, 04 Mar 2020 19:52:19 +0000
commit

86a33d7415c9e5651279509e1b2a973a0c548698

parent

cb13ad79480e2c454e34b819d8e744e9f511d3d3

8 files changed, 32 insertions(+), 77 deletions(-)

jump to
A .ashrc

@@ -0,0 +1,15 @@

+#!/bin/sh + +paleta -r + +export PS1='-> ' +export HISTFILESIZE=10000 + +export CFLAGS='-march=native -pipe -O3 -fno-math-errno' +export CXXFLAGS="$CFLAGS" +export MAKEFLAGS='-j5' + + +sudo() { + su -c "$*" +}
D .config/fish/MACC02VK5ECHTD7.fish

@@ -1,18 +0,0 @@

-set -x PATH ~/.rvm/bin $PATH - -# env vars -export CHEFUSER="jolson" -export SSHUSER="jolson" -export SSHKEY="~/.ssh/id_rsa" - -# aliases -alias cdr='cd (find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks -type d -maxdepth 1 | selecta)' -alias ls='gls --color' -alias tar=gtar -alias sed=gsed -alias be='bundle exec' -alias brm='rm -rf ~/.berkshelf/cookbooks/ && rm -f Berksfile.lock && be berks install' -alias tr=gtr - -# load rvm -rvm default
D .config/fish/config.fish

@@ -1,19 +0,0 @@

-#!/usr/bin/env fish -set fish_greeting - -set -gx EDITOR vim -set -gx LANG en_US.UTF-8 -set -gx LD_LIBRARY_PATH /usr/local/lib/:/usr/lib/ - -set -gx PATH ~/bin/(hostname) ~/bin /usr/local/bin /usr/bin /bin /sbin /usr/sbin -set -gx PATH $PATH ~/.local/share/go/bin - -set -gx GOPATH ~/.local/share/go/ - -function fish_prompt - printf (~/bin/short-pwd) - echo '$ ' -end - -alias vi=vim -source ~/.config/fish/(hostname).fish
D .config/fish/functions/rvm.fish

@@ -1,40 +0,0 @@

-function rvm --description='Ruby enVironment Manager' - # run RVM and capture the resulting environment - set --local env_file (mktemp -t rvm.fish.XXXXXXXXXX) - # This finds where RVM's root directory is and sources scripts/rvm from within it. Then loads RVM in a clean environment and dumps the environment variables it generates out for us to use. - bash -c 'PATH=$GEM_HOME/bin:$PATH;RVMA='~/.rvm/bin/rvm';source $(echo $RVMA | sed "s/\/bin\//\/scripts\//"); rvm "$@"; status=$?; env > "$0"; exit $status' $env_file $argv - - # apply rvm_* and *PATH variables from the captured environment - and eval (grep -E '^rvm|^PATH|^GEM_PATH|^GEM_HOME' $env_file | grep -v '_clr=' | sed '/^[^=]*PATH/s/:/" "/g; s/^/set -xg /; s/=/ "/; s/$/" ;/; s/(//; s/)//') - # needed under fish >= 2.2.0 - and set -xg GEM_PATH (echo $GEM_PATH | sed 's/ /:/g') - - # clean up - rm -f $env_file -end - -function __handle_rvmrc_stuff --on-variable PWD - # Source a .rvmrc file in a directory after changing to it, if it exists. - # To disable this feature, set rvm_project_rvmrc=0 in $HOME/.rvmrc - if test "$rvm_project_rvmrc" != 0 - set -l cwd $PWD - while true - if contains $cwd "" $HOME "/" - if test "$rvm_project_rvmrc_default" = 1 - rvm default 1>/dev/null 2>&1 - end - break - else - if test -e .rvmrc -o -e .ruby-version -o -e .ruby-gemset -o -e Gemfile - eval "rvm reload" > /dev/null - eval "rvm rvmrc load" >/dev/null - break - else - set cwd (dirname "$cwd") - end - end - end - - set -e cwd - end -end
A .profile

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

+#!/bin/sh + +export PATH="$HOME/bin:$PATH" +alias vi=nvim +alias startx='ssh-agent startx' + +export ENV=~/.ashrc + +read -rp "start X?" && [ -z "$DISPLAY" ] && { + export DISPLAY=:0 + x +}
A bin/x

@@ -0,0 +1,5 @@

+#!/bin/sh +# +# start x with some custom configz + +ssh-agent startx