-
Notifications
You must be signed in to change notification settings - Fork 1
/
shrc
executable file
·36 lines (26 loc) · 871 Bytes
/
shrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
## ksh specific
# Scrollback with arrow keys
set -o emacs
alias __A=`echo "\020"` # up arrow = ^p = back a command
alias __B=`echo "\016"` # down arrow = ^n = down a command
alias __C=`echo "\006"` # right arrow = ^f = forward a character
alias __D=`echo "\002"` # left arrow = ^b = back a character
alias __H=`echo "\001"` # home = ^a = start of line
alias __Y=`echo "\005"` # end = ^e = end of line
## Pretty shell
PS1='\033[35m\u\033[0m\033[0m \033[36m\w\033[0m \033[35m -> '
export HISTFILE=$HOME/.ksh_history
## Aliases!
alias ls="ls --color"
alias ix="curl -F 'f:1=<-' ix.io"
## Colors
cat "$HOME/.config/vibrant-night"
## SSH Agent
if ! pgrep -u "$USER" ssh-agent > /dev/null; then
ssh-agent > "$XDG_RUNTIME_DIR/ssh-agent.env"
fi
if [ ! "$SSH_AUTH_SOCK" ]; then
. "${XDG_RUNTIME_DIR}/ssh-agent.env" > /dev/null
fi
export GPG_TTY=$(tty)