Select the types of activity you want to include in your feed.
Personal dotfiles for Linux, mostly for Nixpkgs/NixOS-based and Termux setups. Mirrored using GitLab's push mirroring feature.
gitlab.com/andreijiroh-dev/dotfiles
···55# portable at least.
66# SPDX-License-Identifier: MPL-2.0
7788+### from Debian and Ubuntu - START ###
99+# don't put duplicate lines or lines starting with space in the history.
1010+# See bash(1) for more options
1111+HISTCONTROL=ignoreboth
1212+1313+# append to the history file, don't overwrite it
1414+shopt -s histappend
1515+1616+# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
1717+HISTSIZE=2500
1818+HISTFILESIZE=5000
1919+2020+# set a fancy prompt (non-color, unless we know we "want" color)
2121+case "$TERM" in
2222+ xterm-color|*-256color) color_prompt=yes;;
2323+esac
2424+2525+# uncomment for a colored prompt, if the terminal has the capability; turned
2626+# off by default to not distract the user: the focus in a terminal window
2727+# should be on the output of commands, not on the prompt
2828+#force_color_prompt=yes
2929+3030+if [ -n "$force_color_prompt" ]; then
3131+ if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
3232+ # We have color support; assume it's compliant with Ecma-48
3333+ # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
3434+ # a case would tend to support setf rather than setaf.)
3535+ color_prompt=yes
3636+ else
3737+ color_prompt=
3838+ fi
3939+fi
4040+4141+if [ "$color_prompt" = yes ]; then
4242+ PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
4343+else
4444+ PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
4545+fi
4646+unset color_prompt force_color_prompt
4747+4848+# If this is an xterm set the title to user@host:dir
4949+case "$TERM" in
5050+xterm*|rxvt*)
5151+ PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
5252+ ;;
5353+*)
5454+ ;;
5555+esac
5656+5757+# enable color support of ls and also add handy aliases
5858+if [ -x /usr/bin/dircolors ]; then
5959+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
6060+ alias ls='ls --color=auto'
6161+ #alias dir='dir --color=auto'
6262+ #alias vdir='vdir --color=auto'
6363+6464+ alias grep='grep --color=auto'
6565+ alias fgrep='fgrep --color=auto'
6666+ alias egrep='egrep --color=auto'
6767+fi
6868+6969+# colored GCC warnings and errors
7070+export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
7171+7272+alias ll='ls -alF'
7373+alias la='ls -A'
7474+alias l='ls -CF'
7575+7676+# enable programmable completion features (you don't need to enable
7777+# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
7878+# sources /etc/bash.bashrc).
7979+if ! shopt -oq posix; then
8080+ if [ -f /usr/share/bash-completion/bash_completion ]; then
8181+ . /usr/share/bash-completion/bash_completion
8282+ elif [ -f /etc/bash_completion ]; then
8383+ . /etc/bash_completion
8484+ fi
8585+fi
8686+### from Debian and Ubuntu - END ###
8787+888# do feature detection if keychain is installed
989if command -v keychain >> /dev/null; then
1090 FF_KEYCHAIN=1