aboutsummaryrefslogtreecommitdiff
path: root/mkshrc.d
diff options
context:
space:
mode:
Diffstat (limited to 'mkshrc.d')
-rwxr-xr-xmkshrc.d/00-editor.sh3
-rwxr-xr-xmkshrc.d/00-git.sh11
-rwxr-xr-xmkshrc.d/00-go.sh4
-rwxr-xr-xmkshrc.d/00-infinality.sh19
-rwxr-xr-xmkshrc.d/00-ls.sh2
-rwxr-xr-xmkshrc.d/00-misc.sh6
-rwxr-xr-xmkshrc.d/00-pager.sh15
-rw-r--r--mkshrc.d/00-sudo.sh4
-rwxr-xr-xmkshrc.d/00-xbps.sh5
-rwxr-xr-xmkshrc.d/90-prompt.sh9
-rwxr-xr-xmkshrc.d/91-z.sh4
11 files changed, 82 insertions, 0 deletions
diff --git a/mkshrc.d/00-editor.sh b/mkshrc.d/00-editor.sh
new file mode 100755
index 0000000..d60a65f
--- /dev/null
+++ b/mkshrc.d/00-editor.sh
@@ -0,0 +1,3 @@
+EDITOR=$(command -v vim)
+VISUAL="$EDITOR"
+export EDITOR VISUAL
diff --git a/mkshrc.d/00-git.sh b/mkshrc.d/00-git.sh
new file mode 100755
index 0000000..22cbb28
--- /dev/null
+++ b/mkshrc.d/00-git.sh
@@ -0,0 +1,11 @@
+if [ -x /usr/bin/git ]; then
+ alias ga='git add'
+ alias gc='git commit'
+ alias gca='git commit --amend'
+ alias gp='git pull'
+ alias gpr='git pull --rebase'
+ alias gs='git status -sb'
+ alias gb='git branch'
+ alias gd='git diff'
+ alias gl='git l'
+fi
diff --git a/mkshrc.d/00-go.sh b/mkshrc.d/00-go.sh
new file mode 100755
index 0000000..cb261af
--- /dev/null
+++ b/mkshrc.d/00-go.sh
@@ -0,0 +1,4 @@
+GOPATH="$HOME/go"
+GOBIN="$GOPATH/bin"
+PATH="$PATH:$GOBIN"
+export GOPATH GOBIN PATH
diff --git a/mkshrc.d/00-infinality.sh b/mkshrc.d/00-infinality.sh
new file mode 100755
index 0000000..d56e60e
--- /dev/null
+++ b/mkshrc.d/00-infinality.sh
@@ -0,0 +1,19 @@
+if [ -n "$DISPLAY" ]; then
+ export INFINALITY_FT_FILTER_PARAMS='10 35 40 35 10'
+ export INFINALITY_FT_AUTOHINT_HORIZONTAL_STEM_DARKEN_STRENGTH=0
+ export INFINALITY_FT_AUTOHINT_VERTICAL_STEM_DARKEN_STRENGTH=0
+ export INFINALITY_FT_AUTOHINT_INCREASE_GLYPH_HEIGHTS=false
+ export INFINALITY_FT_AUTOHINT_SNAP_STEM_HEIGHT=0
+ export INFINALITY_FT_GAMMA_CORRECTION='0 100'
+ export INFINALITY_FT_BRIGHTNESS=0
+ export INFINALITY_FT_CONTRAST=0
+ export INFINALITY_FT_CHROMEOS_STYLE_SHARPENING_STRENGTH=5
+ export INFINALITY_FT_WINDOWS_STYLE_SHARPENING_STRENGTH=0
+ export INFINALITY_FT_FRINGE_FILTER_STRENGTH=5
+ export INFINALITY_FT_GRAYSCALE_FILTER_STRENGTH=10
+ export INFINALITY_FT_STEM_ALIGNMENT_STRENGTH=0
+ export INFINALITY_FT_STEM_FITTING_STRENGTH=0
+ export INFINALITY_FT_STEM_SNAPPING_SLIDING_SCALE=0
+ export INFINALITY_FT_USE_KNOWN_SETTINGS_ON_SELECTED_FONTS=true
+ export INFINALITY_FT_USE_VARIOUS_TWEAKS=true
+fi
diff --git a/mkshrc.d/00-ls.sh b/mkshrc.d/00-ls.sh
new file mode 100755
index 0000000..80ad3bc
--- /dev/null
+++ b/mkshrc.d/00-ls.sh
@@ -0,0 +1,2 @@
+alias ls="ls -hF --color"
+
diff --git a/mkshrc.d/00-misc.sh b/mkshrc.d/00-misc.sh
new file mode 100755
index 0000000..85d35cb
--- /dev/null
+++ b/mkshrc.d/00-misc.sh
@@ -0,0 +1,6 @@
+alias wanip='curl ipinfo.io/ip'
+
+psgrep() {
+}
+
+# alias agsed="ag -l $1 | xargs sed -ri.bak -e 's/$1/$2/g'"
diff --git a/mkshrc.d/00-pager.sh b/mkshrc.d/00-pager.sh
new file mode 100755
index 0000000..16497c9
--- /dev/null
+++ b/mkshrc.d/00-pager.sh
@@ -0,0 +1,15 @@
+PAGER=$(command -v less)
+LESS="-FXRi"
+# LESSHISTFILE=-
+MANWIDTH=80
+
+# colored man pages:
+LESS_TERMCAP_md=$'\e[1;31m' # start bold
+LESS_TERMCAP_so=$'\e[1;40;37m' # start standout
+LESS_TERMCAP_se=$'\e[0m' # end standout
+LESS_TERMCAP_us=$'\e[0;34m' # start underlining
+LESS_TERMCAP_ue=$'\e[0m' # end underlining
+LESS_TERMCAP_me=$'\e[0m' # end all modes]']']']']']'
+
+export PAGER LESS LESSHISTFILE MANWIDTH LESS_TERMCAP_md LESS_TERMCAP_so \
+ LESS_TERMCAP_se LESS_TERMCAP_us LESS_TERMCAP_ue LESS_TERMCAP_me
diff --git a/mkshrc.d/00-sudo.sh b/mkshrc.d/00-sudo.sh
new file mode 100644
index 0000000..5abf549
--- /dev/null
+++ b/mkshrc.d/00-sudo.sh
@@ -0,0 +1,4 @@
+if [ -x "$(command -v /usr/bin/sudo)" ]; then
+ alias sudovi="EDITOR=vi sudoedit $@"
+ alias sudovim="EDITOR=vim sudoedit $@"
+fi
diff --git a/mkshrc.d/00-xbps.sh b/mkshrc.d/00-xbps.sh
new file mode 100755
index 0000000..d2ab55e
--- /dev/null
+++ b/mkshrc.d/00-xbps.sh
@@ -0,0 +1,5 @@
+if [ -x /usr/bin/xbps-install ]; then
+ alias xi='sudo xbps-install'
+ alias xr='sudo xbps-remove'
+ alias xq='xbps-query'
+fi
diff --git a/mkshrc.d/90-prompt.sh b/mkshrc.d/90-prompt.sh
new file mode 100755
index 0000000..7449156
--- /dev/null
+++ b/mkshrc.d/90-prompt.sh
@@ -0,0 +1,9 @@
+if [ -x "$(command -v slcp)" ]; then
+ PS1='$(slcp $COLUMNS $?)'
+fi
+
+case "$TERM" in
+ dvtm*|xterm*|rxvt*)
+ PS1+='$(echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007")'
+ ;;
+esac
diff --git a/mkshrc.d/91-z.sh b/mkshrc.d/91-z.sh
new file mode 100755
index 0000000..b5ad1af
--- /dev/null
+++ b/mkshrc.d/91-z.sh
@@ -0,0 +1,4 @@
+if [ -r /home/duncan/repos/github.com/Duncaen/dotfiles/z/z.sh ]; then
+ . /home/duncan/repos/github.com/Duncaen/dotfiles/z/z.sh
+ PS1+='$(_z --add "${PWD}")'
+fi