aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash_aliases6
-rwxr-xr-xbash/.bash_prompt5
-rw-r--r--bash/.bashrc49
3 files changed, 10 insertions, 50 deletions
diff --git a/bash/.bash_aliases b/bash/.bash_aliases
index 76335b5..efecd71 100644
--- a/bash/.bash_aliases
+++ b/bash/.bash_aliases
@@ -23,9 +23,3 @@ alias ggp='git push'
23alias gl='git log -p --abbrev-commit --pretty=medium' 23alias gl='git log -p --abbrev-commit --pretty=medium'
24alias glo='git log --pretty=oneline --abbrev-commit' 24alias glo='git log --pretty=oneline --abbrev-commit'
25alias gst='git status --short' 25alias gst='git status --short'
26
27# xbps
28alias +='sudo xbps-install'
29alias ?='xbps-query -Rs'
30alias ~='sudo xbps-remove'
31
diff --git a/bash/.bash_prompt b/bash/.bash_prompt
index 667d32a..ca47d1d 100755
--- a/bash/.bash_prompt
+++ b/bash/.bash_prompt
@@ -47,6 +47,7 @@ host() {
47 fi 47 fi
48} 48}
49 49
50PS1='\n$(pista)'
51 50
52PS2=" > " 51export PS1='\n$(pista)'
52
53export PS2=" > "
diff --git a/bash/.bashrc b/bash/.bashrc
index abd37e7..656978a 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -1,26 +1,13 @@
1export PATH=$PATH":$HOME/.cargo/bin"
2export PATH=$PATH":$HOME/.poetry/bin"
3export PATH=$PATH":$HOME/scripts" 1export PATH=$PATH":$HOME/scripts"
4export PATH=$PATH":$HOME/bin" 2
5export PATH=$PATH":$HOME/.cabal/bin" 3export TERM=xterm-256color-italic
6export PATH=$PATH":$HOME/leet/flutter/bin" 4export EDITOR="/run/current-system/sw/bin/nvim"
7export PATH=$PATH":$HOME/.local/bin"
8export PATH=$PATH":/usr/lib/jvm/jdk-14/bin"
9export PATH=$PATH":/usr/local/texlive/2020/bin/x86_64-linux/"
10export PATH=$PATH":/usr/local/go/bin"
11
12export AIRFLOW_HOME="$HOME/.config/airflow"
13export ANDROID_HOME="$HOME/leet/ndk/android-ndk-r21c/toolchains"
14export EDITOR=/bin/nvim
15export MANPAGER="less" 5export MANPAGER="less"
16export BROWSER="/bin/firefox" 6export BROWSER="/run/current-system/sw/bin/nvim"
17export GPG_TTY=$(tty) 7export GPG_TTY=$(tty)
18export TERM=xterm-256color-italic
19export TZ='Asia/Kolkata' 8export TZ='Asia/Kolkata'
20export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --color=bw' 9export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --color=bw'
21 10
22export GUILE_LOAD_PATH="/usr/local/share/guile/3.0:/usr/local/share/guile"
23
24export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 11export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
25 12
26case $- in 13case $- in
@@ -54,7 +41,6 @@ bind 'set show-all-if-ambiguous on'
54bind 'set colored-stats on' 41bind 'set colored-stats on'
55bind 'set completion-display-width 1' 42bind 'set completion-display-width 1'
56bind 'TAB:menu-complete' 43bind 'TAB:menu-complete'
57bind "t: $HOME/scripts/tmux-fzf.sh"
58bind Space:magic-space 44bind Space:magic-space
59 45
60if ! shopt -oq posix; then 46if ! shopt -oq posix; then
@@ -65,19 +51,11 @@ if ! shopt -oq posix; then
65 fi 51 fi
66fi 52fi
67 53
68# local bash completions 54[ -f $HOME/.github ] && . $HOME/.github
69for cf in "$HOME"/.bash_completion.d/* ; do
70 . $cf
71done
72
73[ -f ~/.bash_aliases ] && . ~/.bash_aliases 55[ -f ~/.bash_aliases ] && . ~/.bash_aliases
74[ -f ~/.bash_prompt ] && . ~/.bash_prompt 56[ -f ~/.bash_prompt ] && . ~/.bash_prompt
75[ -f ~/.fzf.bash ] && source ~/.fzf.bash 57[ -f ~/.fzf.bash ] && source ~/.fzf.bash
76 58
77export NVM_DIR="$HOME/.nvm"
78[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
79[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
80
81eval "$(stack --bash-completion-script stack)" 59eval "$(stack --bash-completion-script stack)"
82 60
83# pfetch 61# pfetch
@@ -87,27 +65,14 @@ export PF_COL1=7
87export PF_COL2=7 65export PF_COL2=7
88export PF_COL3=6 66export PF_COL3=6
89export PF_ALIGN="9" 67export PF_ALIGN="9"
90export PF_ASCII="void" 68export PF_ASCII="nixos"
91 69
92export _JAVA_AWT_WM_NONREPARENTING=1 70export _JAVA_AWT_WM_NONREPARENTING=1
93 71
94# [[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
95# [[ -f ~/.bash_zoxide.sh ]] && source ~/.bash_zoxide.sh
96#
97# export PATH_TO_FX="$HOME/dloads/javafx/javafx-sdk-11.0.2/lib"
98# export JAVA_HOME="/usr/lib/jvm/jdk-14"
99#
100# for file in `find ~/dloads/nlp/stanford-corenlp-full-2018-10-05/ -name "*.jar"`; do
101# export CLASSPATH="$CLASSPATH:`realpath $file`"
102# done
103
104# tabtab source for packages
105# uninstall by removing these lines
106[ -f ~/.config/tabtab/__tabtab.bash ] && . ~/.config/tabtab/__tabtab.bash || true
107 72
108# Pista stuff 73# Pista stuff
109# prompt string to display, for regular users 74# prompt string to display, for regular users
110export PROMPT_CHAR="$" 75export PROMPT_CHAR="λ"
111export PROMPT_CHAR_COLOR="cyan" 76export PROMPT_CHAR_COLOR="cyan"
112 77
113# prompt string to display, for the root user 78# prompt string to display, for the root user