diff options
Diffstat (limited to 'bash')
-rw-r--r-- | bash/.bash_aliases | 6 | ||||
-rwxr-xr-x | bash/.bash_prompt | 5 | ||||
-rw-r--r-- | bash/.bashrc | 49 |
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' | |||
23 | alias gl='git log -p --abbrev-commit --pretty=medium' | 23 | alias gl='git log -p --abbrev-commit --pretty=medium' |
24 | alias glo='git log --pretty=oneline --abbrev-commit' | 24 | alias glo='git log --pretty=oneline --abbrev-commit' |
25 | alias gst='git status --short' | 25 | alias gst='git status --short' |
26 | |||
27 | # xbps | ||
28 | alias +='sudo xbps-install' | ||
29 | alias ?='xbps-query -Rs' | ||
30 | alias ~='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 | ||
50 | PS1='\n$(pista)' | ||
51 | 50 | ||
52 | PS2=" > " | 51 | export PS1='\n$(pista)' |
52 | |||
53 | export PS2=" > " | ||
diff --git a/bash/.bashrc b/bash/.bashrc index abd37e7..656978a 100644 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
@@ -1,26 +1,13 @@ | |||
1 | export PATH=$PATH":$HOME/.cargo/bin" | ||
2 | export PATH=$PATH":$HOME/.poetry/bin" | ||
3 | export PATH=$PATH":$HOME/scripts" | 1 | export PATH=$PATH":$HOME/scripts" |
4 | export PATH=$PATH":$HOME/bin" | 2 | |
5 | export PATH=$PATH":$HOME/.cabal/bin" | 3 | export TERM=xterm-256color-italic |
6 | export PATH=$PATH":$HOME/leet/flutter/bin" | 4 | export EDITOR="/run/current-system/sw/bin/nvim" |
7 | export PATH=$PATH":$HOME/.local/bin" | ||
8 | export PATH=$PATH":/usr/lib/jvm/jdk-14/bin" | ||
9 | export PATH=$PATH":/usr/local/texlive/2020/bin/x86_64-linux/" | ||
10 | export PATH=$PATH":/usr/local/go/bin" | ||
11 | |||
12 | export AIRFLOW_HOME="$HOME/.config/airflow" | ||
13 | export ANDROID_HOME="$HOME/leet/ndk/android-ndk-r21c/toolchains" | ||
14 | export EDITOR=/bin/nvim | ||
15 | export MANPAGER="less" | 5 | export MANPAGER="less" |
16 | export BROWSER="/bin/firefox" | 6 | export BROWSER="/run/current-system/sw/bin/nvim" |
17 | export GPG_TTY=$(tty) | 7 | export GPG_TTY=$(tty) |
18 | export TERM=xterm-256color-italic | ||
19 | export TZ='Asia/Kolkata' | 8 | export TZ='Asia/Kolkata' |
20 | export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --color=bw' | 9 | export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --color=bw' |
21 | 10 | ||
22 | export GUILE_LOAD_PATH="/usr/local/share/guile/3.0:/usr/local/share/guile" | ||
23 | |||
24 | export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' | 11 | export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' |
25 | 12 | ||
26 | case $- in | 13 | case $- in |
@@ -54,7 +41,6 @@ bind 'set show-all-if-ambiguous on' | |||
54 | bind 'set colored-stats on' | 41 | bind 'set colored-stats on' |
55 | bind 'set completion-display-width 1' | 42 | bind 'set completion-display-width 1' |
56 | bind 'TAB:menu-complete' | 43 | bind 'TAB:menu-complete' |
57 | bind "t: $HOME/scripts/tmux-fzf.sh" | ||
58 | bind Space:magic-space | 44 | bind Space:magic-space |
59 | 45 | ||
60 | if ! shopt -oq posix; then | 46 | if ! shopt -oq posix; then |
@@ -65,19 +51,11 @@ if ! shopt -oq posix; then | |||
65 | fi | 51 | fi |
66 | fi | 52 | fi |
67 | 53 | ||
68 | # local bash completions | 54 | [ -f $HOME/.github ] && . $HOME/.github |
69 | for cf in "$HOME"/.bash_completion.d/* ; do | ||
70 | . $cf | ||
71 | done | ||
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 | ||
77 | export 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 | |||
81 | eval "$(stack --bash-completion-script stack)" | 59 | eval "$(stack --bash-completion-script stack)" |
82 | 60 | ||
83 | # pfetch | 61 | # pfetch |
@@ -87,27 +65,14 @@ export PF_COL1=7 | |||
87 | export PF_COL2=7 | 65 | export PF_COL2=7 |
88 | export PF_COL3=6 | 66 | export PF_COL3=6 |
89 | export PF_ALIGN="9" | 67 | export PF_ALIGN="9" |
90 | export PF_ASCII="void" | 68 | export PF_ASCII="nixos" |
91 | 69 | ||
92 | export _JAVA_AWT_WM_NONREPARENTING=1 | 70 | export _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 |
110 | export PROMPT_CHAR="$" | 75 | export PROMPT_CHAR="λ" |
111 | export PROMPT_CHAR_COLOR="cyan" | 76 | export PROMPT_CHAR_COLOR="cyan" |
112 | 77 | ||
113 | # prompt string to display, for the root user | 78 | # prompt string to display, for the root user |