diff options
| author | Cryxtalix <fgx8p9t@protonmail.com> | 2024-11-08 21:58:55 +0800 |
|---|---|---|
| committer | Cryxtalix <fgx8p9t@protonmail.com> | 2024-11-08 21:58:55 +0800 |
| commit | dc839e971ad6a724bc99bccc6dfaa11ee8a1eaa9 (patch) | |
| tree | 79e1ee75429a5ef500f716d3675aeec6c52dcda1 /.bashrc | |
Init gnu stow
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 41 |
1 files changed, 41 insertions, 0 deletions
@@ -0,0 +1,41 @@ +# .bashrc + +# Source global definitions +if [ -f /etc/bashrc ]; then + . /etc/bashrc +fi + +# User specific environment +if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then + PATH="$HOME/.local/bin:$HOME/bin:$PATH" +fi +export PATH + +# Uncomment the following line if you don't like systemctl's auto-paging feature: +# export SYSTEMD_PAGER= + +# User specific aliases and functions +if [ -d ~/.bashrc.d ]; then + for rc in ~/.bashrc.d/*; do + if [ -f "$rc" ]; then + . "$rc" + fi + done +fi +unset rc + +# Personal +export HISTFILESIZE=1000 +export HISTSIZE=500 +export VISUAL=nvim +export EDITOR="$VISUAL" +export PS1='\[\e[1m\][ \[\e[96m\]\w \[\e[39m\]]\\$ \[\e[0m\]' +alias ls="ls -F --color"; +alias ll="ls -AlF --color"; +alias la="ls -AF --color"; +alias c="clear"; +alias v="nvim"; +alias nv-watch="watch -n1 nvidia-smi"; + +# Rust +. "$HOME/.cargo/env"; |
