-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bashrc
110 lines (98 loc) · 2.98 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
# ~/.bashrc
RED='\033[0;31m'
BLUE='\033[0;34m'
NC='\033[0m'
BOLD=$(tput bold)
ITALIC=$(tput rmul)
NORMAL=$(tput sgr0)
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export BROWSER="min"
export PATH="$PATH":"$HOME/.pub-cache/bin"
export EXA_ICON_SPACING=2
export PATH=$PATH:$HOME/.local/bin
export PATH=$HOME/.cargo/bin/:$PATH
export JAVA_HOME=/usr/lib/jvm/java-17-openjdk
export JDTLS_JVM_ARGS="-Xms256m \
-Xmx512m
-javaagent:$HOME/Downloads/lombok.jar"
export ANDROID_SDK_ROOT='/opt/android-sdk'
export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools/
export PATH=$PATH:$ANDROID_SDK_ROOT/tools/bin/
export PATH=$PATH:$ANDROID_ROOT/emulator
export PATH=$PATH:$ANDROID_SDK_ROOT/tools/
export TERM="xterm-256color"
export EDITOR=vim
export GITHUB_ACCESS_TOKEN=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
export GOOGLE_APPLICATION_CREDENTIALS="/home/abdul_samad/F/kaizen/firebase-mithuji.json"
export FZF_DEFAULT_OPTS=$FZF_DEFAULT_OPTS"
--height 60%
--reverse
--border
--color=fg:#e0def4,bg:#1f1d2e,hl:#6e6a86
--color=fg+:#908caa,bg+:#191724,hl+:#908caa
--color=info:#9ccfd8,prompt:#f6c177,pointer:#c4a7e7
--color=marker:#ebbcba,spinner:#eb6f92,header:#ebbcba"
export FZF_COMPLETION_TRIGGER='~~'
export FZF_COMPLETION_OPTS='--border --info=inline'
export GOPATH=$HOME/go/
#Aliases
alias ka='killall'
alias screenkey='screenkey -s small --opacity 0.5 -g 300x840 --font JetBrainsMono --bg-color black --font-color white'
alias ns='exa --git --no-user --icons'
alias nn='ns -l'
alias nna='ns -la'
alias cp='cp -i'
alias mv='mv -i'
alias wp='cd ~/F/kaizen/mithuji-backend'
alias bp='cd ~/E/Java/projects/spring/RecipExBackend/'
alias eww='~/.bin/eww'
alias neofetch-chika='neofetch --source ~/.config/neofetch/asciis/chika'
alias mysql="mysql -p"
alias bat="bat --theme gruvbox-dark"
alias start-feh-blur="feh-blur --blur 4 --darken 4 -d"
alias nl="notify-send --urgency=low \"Done\""
alias nm="notify-send --urgency=normal \"Done\""
alias nh="notify-send --urgency=critical \"Pwease hurry, senpaii!! >~<\""
alias grep="rg"
alias bf="bat \`fzf\`"
alias vf="vim \`fzf\`"
alias cf="cd \`find . -type d -print | cut -c 3- | fzf\`"
alias cr="cargo run"
alias cb="cargo build"
# git aliases
alias lg='lazygit'
alias gs='git status'
alias gc='git commit -m'
alias gp='git push'
alias ga='git add'
complete -cf sudo
_fzf_complete_vim() {
_fzf_complete --multi --reverse --prompt="vim> " -- "$@" < <(
echo very
)
}
# function to run and detach processes from the terminal
detach () {
( "$@" &> /dev/null & disown )
}
# function to get status of process
status () {
( ps aux | grep "$@" )
}
PS1='[\u@\h \W]\$ '
# Starship prompt
eval "$(starship init bash)"
colorscript --exec crunchbang-mini
# colorscript --exec panes
# colorblocks
echo
echo -en "${RED}\e[3m❤ $(cat ~/.cache/qwote.txt) ❤\e[0m${NC}"
echo -en "\n${BLUE}\e[3m- $(cat ~/.cache/author.txt)\e[0m${NC}"
echo
fortune
# cowsay `fortune -n 160`
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
# set vim keybindings
set -o vi