This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
129 lines (113 loc) · 3.82 KB
/
.bashrc
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
#!/bin/bash
#--------------------------------------------------------------------------------
export EDITOR="nvim"
export VISUAL="nvim"
export TERMINAL="kitty"
export TERM="kitty"
export BROWSER="qutebrowser"
# PATH and Other Bin Pointer Variables
export CHROME_EXECUTABLE="/usr/bin/google-chrome-stable"
export PATH="${PATH}:/home/philippe/Code/Flutter/bin"
export PATH="${PATH}:/home/philippe/.emacs.d/bin"
export PATH="${PATH}:/home/philippe/.local/bin/ghcid"
export PATH="${PATH}:${HOME}/.local/bin"
export PATH="${PATH}:/usr/local/bin/stack"
export DART_SDK="/home/philippe/Code/Flutter/bin/dart"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export FZF_DEFAULT_OPS="--extended"
# PS1
TIME_COLOR="\[\e[01;38;5;011m\]"
PATH_COLOR="\[\e[01;38;5;002m\]"
BRANCH_COLOR="\[\e[01;38;5;033m\]"
ROOT_OR_NOT_COLOR="\[\e[01;38;5;013m\]"
TIME="\t"
CURRENT_PATH="\w"
BRANCH="git status >/dev/null 2>&1 && git branch --show-current"
ROOT_OR_NOT="\$"
TEXT_RESET="\[\e[00m\]"
USER="\u"
COMPLETE_TIME="${TIME_COLOR}${TIME}"
COMPLETE_PATH="${PATH_COLOR}${CURRENT_PATH}"
COMPLETE_BRANCH="${BRANCH_COLOR}\$(${BRANCH})"
COMPLETE_ROOT_OR_NOT="${ROOT_OR_NOT_COLOR}${ROOT_OR_NOT}"
export PS1="${COMPLETE_PATH} ${COMPLETE_BRANCH} ${TEXT_RESET}"
source /usr/share/nvm/init-nvm.sh
#--------------------------------------------------------------------------------
# Some Terminal Settings
shopt -s autocd
HISTSIZE= HISTFILESIZE=
set -o vi
bind -m vi-insert '"\C-x\C-e": edit-and-execute-command'
shopt -s globstar
#--------------------------------------------------------------------------------
# Proper Vim Redirection
alias vim="nvim"
alias vi="nvim"
alias oldvim="vim"
# Useful Terminal CLI Tools
alias cls="clear"
alias get-prop-name="xprop | grep CLASS"
alias poweroff="sudo poweroff"
alias reboot="sudo reboot"
alias ls="ls --color=auto"
alias grep="grep --color=auto"
alias cat="bat"
alias trc="transmission-cli"
alias tremca="tremc -- -a"
alias zth="zathura"
alias duq="du -BM -d1"
alias py="python"
alias gparted="sudo gparted"
alias clrp="colorpicker"
alias nm="neomutt"
alias github_ssh="eval \$(ssh-agent -s) && ssh-add ~/.ssh/github_ssh"
alias gssh="github_ssh"
alias mpv="mpv --volume=70"
# Package Managers
alias p="sudo pacman"
alias pi="sudo pacman -Syu"
alias pq="sudo pacman -Ss"
alias pr="sudo pacman -Rns"
alias yi="yay -Syu"
alias yq="yay -Ss"
alias yr="yay -Rns"
# Core Dotfiles Editings
alias bashrc="vim ~/.bashrc"
alias gitconfig="vim ~/.gitconfig"
alias gitignore="vim ~/.gitignore"
alias vimrc="vim ~/.config/nvim/init.vim"
alias xmonadrc="vim ~/.xmonad/xmonad.hs"
alias awesomerc="vim ~/.config/awesome/rc.lua"
alias xinitrc="vim ~/.xinitrc"
alias zathurarc="vim ~/.config/zathura/zathurarc"
alias imwheelrc="vim ~/.imwheelrc"
alias qutebrowserrc="vim ~/.config/qutebrowser/config.py"
alias tremcrc="vim ~/.config/tremc/settings.cfg"
alias cocrc="vim ~/.config/nvim/coc-settings.json"
alias README="vim ~/README.md"
alias kittyrc="vim ~/.config/kitty/kitty.conf"
alias muttrc="vim ~/.config/mutt/muttrc"
alias emacsrc="vim ~/.emacs"
alias ghcirc="vim ~/.ghc/ghci.conf"
alias irssirc="vim ~/.irssi/config"
# Folders
alias fanaro_io="cd ~/Code/FanaroEngineering/fanaro.io/"
alias brnhk="cd ~/Code/BrasilNihonKiin/nihonkiin.com.br/"
alias courses="cd ~/Code/Courses/"
alias lab="cd ~/Code/Lab/"
alias notes="cd ~/Notes/"
alias scripts="cd ~/.scripts/"
# Notetaking
alias note-tmp="cd ~/Notes/Tmp/ && vim"
alias cn="bash ~/.scripts/create_note.sh"
alias ct="bash ~/.scripts/create_timeblock.sh"
# Flutter & Dart
alias dartfmt="flutter dartfmt"
# Haskell
alias cb="cabal new-build"
alias cnr="cabal new-repl"
alias stack-jupyter="stack exec jupyter -- notebook"
alias ghci="stack ghci"
# Video and FFMPEG
alias video_resolution="ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0"
#--------------------------------------------------------------------------------