-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
72 lines (54 loc) · 1.52 KB
/
.profile
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# CLI Colors
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad
# Add dotfiles to path
export PATH=$PATH:~/.dotfiles/bin
export PATH=$PATH:~/.local/bin
# Rbenv Setup
[ -f ~/.rbenv/bin/rbenv ] &&
export PATH="$HOME/.rbenv/bin:$PATH" &&
eval "$(rbenv init -)"
# Fzf
export FZF_DEFAULT_COMMAND='ag --nocolor --ignore node_modules -g ""'
# Check disk usage
alias checkdiskusage='du -h -d1 | sort -hr'
# print csv as table
printcsv() {
sed 's/,,/, ,/g;s/,,/, ,/g' $1 | column -s, -t | less -S
}
# Use vim as editor for react
export REACT_EDITOR=nvim
export EDITOR=nvim
# Use neovim as default vim
alias vim='nvim'
# Common Projects
alias cdd='cd $HOME/.dotfiles'
alias cddotfiles='cd $HOME/.dotfiles'
# Rust
[ -f ~/.cargo/env ] && source ~/.cargo/env
# Exa
if hash exa 2>/dev/null; then
alias ls='exa'
alias l='exa'
alias ll='exa -l'
alias lll='exa -al'
fi
# LESS
export LESS='-RQ'
# ZSH autosuggestions
[ -f /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh ] && source /usr/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# FZF
[ -f $HOME/.fzf.zsh ] && source $HOME/.fzf.zsh
# Base16 Shell
# BASE16_SHELL="$HOME/.config/base16-shell/"
# [ -n "$PS1" ] && \
# [ -s "$BASE16_SHELL/profile_helper.sh" ] && \
# eval "$("$BASE16_SHELL/profile_helper.sh")"
# Base 16 Theme
# [ ! -f ~/.base16_theme ] && base16_material-darker
# Platform specific settings
[ -f ~/.dotfiles/.profile.extra ] && source ~/.dotfiles/.profile.extra
# GPG
export GPG_TTY=$(tty)
# Direnv
hash direnv 2>/dev/null && eval "$(direnv hook zsh)"