alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix up dots for nostromo
author
j3s
date
6 years ago
(Mar 7, 2020, 1:04 PM -0600)
commit
7b84e6c9
7b84e6c9101cc6835ac612494d4b16041174c903
parent
b950d5bc
b950d5bce3e6b1367c63626d126bfcf4680d2abc
+8
-4
2 changed files
Expand all
Collapse all
Unified
Split
.shinit
bin
short-pwd
+7
-3
.shinit
Reviewed
···
4
4
5
5
export EDITOR=vim
6
6
export PS1='$(short-pwd)$ '
7
7
-
export PATH="$HOME/bin/$(hostname -s):$HOME/bin:$PATH"
7
7
+
export PATH="$HOME/bin/$(hostname):$HOME/bin:$PATH"
8
8
export HISTFILESIZE=10000
9
9
10
10
export PASH_KEYID=j3s@c3f.net
···
15
15
alias vi=vim
16
16
alias ls='CLICOLOR=1 ls'
17
17
18
18
+
# mksh
19
19
+
if echo "$SHELL" | grep -q "mksh"; then
20
20
+
bind '^L=clear-screen'
21
21
+
export HISTFILE="$HOME/.mksh-history"
22
22
+
fi
23
23
+
18
24
# bby
19
25
if [ "$(uname -s)" == "Darwin" ]; then
20
20
-
bind '^L=clear-screen'
21
26
alias cdr='cd $(find ~/git/chef/cloud-roles ~/git/chef/site-cookbooks ~/git/chef/app-cookbooks ~/git/chef/dc-roles -type d -maxdepth 1 | selecta)'
22
22
-
export HISTFILE="$HOME/.mksh-history"
23
27
export CHEFUSER="jolson"
24
28
export SSHUSER="jolson"
25
29
export SSHKEY="~/.ssh/id_rsa"
+1
-1
bin/short-pwd
Reviewed
···
3
3
# /s/h/o/rtness
4
4
5
5
term=$(printf "$PWD" | sed -E 's|(\.?[^/])([^/]+)\/|\1/|g')
6
6
-
printf "\033[38;5;162m$term\e[0m"
6
6
+
printf "\033[38;5;162m$term\033[0m"