Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature. gitlab.com/andreijiroh-dev/dotfiles
linux dotfiles
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Some maintenance work around bashrc files

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@andreijiroh.eu.org>

+44 -35
+8
.config/bash/README.md
··· 3 3 Host-specifics (including in `~vern`), maybe bash-specific functions. 4 4 Global configs are at [`~/.bashrc`](../../.bashrc), 5 5 [`~/.bash_login`](../../.bash_login) and [POSIX-compliant `~/.profile`](../../.profile). 6 + 7 + ## Directories and files 8 + 9 + * `completions` 10 + * `hosts` 11 + * `shell-prompts` 12 + * `tools` 13 + * `aliases`
+4 -1
.config/bash/aliases
··· 1 1 # General 2 2 alias clear="printf '\033c'" # faster than ncurses clear by a lot 3 3 alias c='clear' 4 - alias bashrc="vim ~/.bashrc && source ~/.bashrc" 4 + alias bashrc="nano ~/.bashrc && source ~/.bashrc" 5 5 # LS 6 6 alias ls='ls --color=auto -FAh' 7 7 alias ll='ls -l' 8 8 alias la='ls' 9 9 alias l.='ls | egrep "^\."' 10 10 alias l=ls 11 + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 12 + alias dir='dir --color=auto' 13 + alias vdir='vdir --color=auto' 11 14 # GREP 12 15 alias grep='grep --color=auto' 13 16 alias egrep='egrep --color=auto'
+5 -34
.config/bash/bashrc
··· 3 3 # for examples 4 4 5 5 # If not running interactively, don't do anything 6 - case $- in 7 - *i*) ;; 8 - *) return;; 9 - esac 6 + #case $- in 7 + # *i*) ;; 8 + # *) return;; 9 + #esac 10 10 11 11 # don't put duplicate lines or lines starting with space in the history. 12 12 # See bash(1) for more options ··· 30 30 # make less more friendly for non-text input files, see lesspipe(1) 31 31 #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" 32 32 33 - # set variable identifying the chroot you work in (used in the prompt below) 34 - if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then 35 - debian_chroot=$(cat /etc/debian_chroot) 36 - fi 37 - 38 33 # set a fancy prompt (non-color, unless we know we "want" color) 39 34 case "$TERM" in 40 35 xterm-color|*-256color) color_prompt=yes;; ··· 55 50 color_prompt= 56 51 fi 57 52 fi 58 - 59 - if [ "$color_prompt" = yes ]; then 60 - PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 61 - else 62 - PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 63 - fi 64 - unset color_prompt force_color_prompt 65 53 66 54 # If this is an xterm set the title to user@host:dir 67 55 case "$TERM" in ··· 72 60 ;; 73 61 esac 74 62 75 - # enable color support of ls and also add handy aliases 76 - if [ -x /usr/bin/dircolors ]; then 77 - test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 78 - alias ls='ls --color=auto' 79 - #alias dir='dir --color=auto' 80 - #alias vdir='vdir --color=auto' 81 - 82 - #alias grep='grep --color=auto' 83 - #alias fgrep='fgrep --color=auto' 84 - #alias egrep='egrep --color=auto' 85 - fi 86 - 87 63 # colored GCC warnings and errors 88 - #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 89 - 90 - # some more ls aliases 91 - #alias ll='ls -l' 92 - #alias la='ls -A' 93 - #alias l='ls -CF' 64 + export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 94 65 95 66 # Alias definitions. 96 67 # You may want to put all your additions into a separate file like
+11
.config/bash/completions/gopass.bash
··· 1 + _gopass_bash_autocomplete() { 2 + local cur opts base 3 + COMPREPLY=() 4 + cur="${COMP_WORDS[COMP_CWORD]}" 5 + opts=$( ${COMP_WORDS[@]:0:$COMP_CWORD} --generate-bash-completion ) 6 + local IFS=$'\n' 7 + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) 8 + return 0 9 + } 10 + 11 + complete -F _gopass_bash_autocomplete gopass
+4
.config/bash/hosts/btwscar-wsl-Alpine.bashrc
··· 1 + #!/usr/bin/env bash 2 + 3 + alias generate-hash="abuild checksum && abuild -r" 4 + export GIT_EDITOR="code-insiders --wait"
+2
.config/bash/prompt .config/bash/shell-prompts/psflt.bashrc
··· 1 + #!/usr/bin/env bash 2 + 1 3 __sig() { 2 4 # Giant switch case for getting the name of the signal (`kill -l`) 3 5 a=0
.config/bash/prompt.old .config/bash/shell-prompts/vern.bashrc
.config/bash/shell-prompts/.gitkeep

This is a binary file and will not be displayed.

+5
.config/bash/tools/brew.bashrc
··· 1 + #!/usr/bin/env bash 2 + 3 + export HOMEBREW_HOME=${HOMEBREW_HOME:-"/home/linuxbrew/.linuxbrew"} 4 + test -d "$HOMEBREW_HOME" && eval "$($HOMEBREW_HOME/bin/brew shellenv)" 5 + [[ -r "$HOMEBREW_HOME/etc/profile.d/bash_completion.sh" ]] && . "$HOMEBREW_HOME/etc/profile.d/bash_completion.sh"
+5
.config/bash/tools/nvm.bashrc
··· 1 + #!/usr/bin/env bash 2 + 3 + export NVM_DIR="$HOME/.nvm" 4 + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm 5 + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion