|
35 | 35 | mknote = ''echo -e "---\ntitle:\ndate: $(date -u -Iseconds)\n---" > $(cat /dev/urandom | tr -dc 'a-z0-9' | fold -w 8 | head -n 1).md''; |
36 | 36 | }; |
37 | 37 |
|
38 | | - bashrcExtra = |
39 | | - '' |
40 | | - # Source global definitions |
41 | | - if [ -f /etc/bashrc ]; then |
42 | | - . /etc/bashrc |
43 | | - fi |
44 | | -
|
45 | | - # User specific environment |
46 | | - if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then |
47 | | - PATH="$HOME/.local/bin:$HOME/bin:$PATH" |
| 38 | + bashrcExtra = '' |
| 39 | + # Source global definitions |
| 40 | + if [ -f /etc/bashrc ]; then |
| 41 | + . /etc/bashrc |
48 | 42 | fi |
49 | | - export PATH |
50 | 43 |
|
51 | | - # User specific aliases and functions |
52 | | - if [ -d ~/.bashrc.d ]; then |
53 | | - for rc in ~/.bashrc.d/*; do |
54 | | - if [ -f "$rc" ]; then |
55 | | - . "$rc" |
56 | | - fi |
57 | | - done |
58 | | - fi |
59 | | - unset rc |
60 | | -
|
61 | | - # colored GCC warnings and errors |
62 | | - export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' |
| 44 | + # User specific environment |
| 45 | + if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then |
| 46 | + PATH="$HOME/.local/bin:$HOME/bin:$PATH" |
| 47 | + fi |
| 48 | + export PATH |
63 | 49 |
|
64 | | - if ! shopt -oq posix; then |
65 | | - if [ -f /usr/share/bash-completion/bash_completion ]; then |
66 | | - . /usr/share/bash-completion/bash_completion |
67 | | - elif [ -f /etc/bash_completion ]; then |
68 | | - . /etc/bash_completion |
| 50 | + # User specific aliases and functions |
| 51 | + if [ -d ~/.bashrc.d ]; then |
| 52 | + for rc in ~/.bashrc.d/*; do |
| 53 | + if [ -f "$rc" ]; then |
| 54 | + . "$rc" |
69 | 55 | fi |
| 56 | + done |
| 57 | + fi |
| 58 | + unset rc |
| 59 | +
|
| 60 | + # colored GCC warnings and errors |
| 61 | + export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' |
| 62 | +
|
| 63 | + if ! shopt -oq posix; then |
| 64 | + if [ -f /usr/share/bash-completion/bash_completion ]; then |
| 65 | + . /usr/share/bash-completion/bash_completion |
| 66 | + elif [ -f /etc/bash_completion ]; then |
| 67 | + . /etc/bash_completion |
70 | 68 | fi |
71 | | - ''; |
| 69 | + fi |
| 70 | + ''; |
72 | 71 |
|
73 | 72 | profileExtra = '' |
74 | 73 | # Get the aliases and functions |
|
0 commit comments