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.

bring debian/ubuntu config to here

+80
+80
.bashrc
··· 5 5 # portable at least. 6 6 # SPDX-License-Identifier: MPL-2.0 7 7 8 + ### from Debian and Ubuntu - START ### 9 + # don't put duplicate lines or lines starting with space in the history. 10 + # See bash(1) for more options 11 + HISTCONTROL=ignoreboth 12 + 13 + # append to the history file, don't overwrite it 14 + shopt -s histappend 15 + 16 + # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) 17 + HISTSIZE=2500 18 + HISTFILESIZE=5000 19 + 20 + # set a fancy prompt (non-color, unless we know we "want" color) 21 + case "$TERM" in 22 + xterm-color|*-256color) color_prompt=yes;; 23 + esac 24 + 25 + # uncomment for a colored prompt, if the terminal has the capability; turned 26 + # off by default to not distract the user: the focus in a terminal window 27 + # should be on the output of commands, not on the prompt 28 + #force_color_prompt=yes 29 + 30 + if [ -n "$force_color_prompt" ]; then 31 + if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 32 + # We have color support; assume it's compliant with Ecma-48 33 + # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 34 + # a case would tend to support setf rather than setaf.) 35 + color_prompt=yes 36 + else 37 + color_prompt= 38 + fi 39 + fi 40 + 41 + if [ "$color_prompt" = yes ]; then 42 + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' 43 + else 44 + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' 45 + fi 46 + unset color_prompt force_color_prompt 47 + 48 + # If this is an xterm set the title to user@host:dir 49 + case "$TERM" in 50 + xterm*|rxvt*) 51 + PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" 52 + ;; 53 + *) 54 + ;; 55 + esac 56 + 57 + # enable color support of ls and also add handy aliases 58 + if [ -x /usr/bin/dircolors ]; then 59 + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 60 + alias ls='ls --color=auto' 61 + #alias dir='dir --color=auto' 62 + #alias vdir='vdir --color=auto' 63 + 64 + alias grep='grep --color=auto' 65 + alias fgrep='fgrep --color=auto' 66 + alias egrep='egrep --color=auto' 67 + fi 68 + 69 + # colored GCC warnings and errors 70 + export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' 71 + 72 + alias ll='ls -alF' 73 + alias la='ls -A' 74 + alias l='ls -CF' 75 + 76 + # enable programmable completion features (you don't need to enable 77 + # this, if it's already enabled in /etc/bash.bashrc and /etc/profile 78 + # sources /etc/bash.bashrc). 79 + if ! shopt -oq posix; then 80 + if [ -f /usr/share/bash-completion/bash_completion ]; then 81 + . /usr/share/bash-completion/bash_completion 82 + elif [ -f /etc/bash_completion ]; then 83 + . /etc/bash_completion 84 + fi 85 + fi 86 + ### from Debian and Ubuntu - END ### 87 + 8 88 # do feature detection if keychain is installed 9 89 if command -v keychain >> /dev/null; then 10 90 FF_KEYCHAIN=1