diff options
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 59 |
1 files changed, 16 insertions, 43 deletions
@@ -33,7 +33,11 @@ export BROWSER="firefox" export CC="gcc" export EDITOR="nvim" export PAGER="less" -export MANPAGER="nvimpager" +case "$(hostname)" in + mangobox) export MANPAGER="manpager" ;; + mango-os) export MANPAGER="nvimpager" ;; + *) export MANPAGER="less" ;; +esac export TERM="xterm-256color" export VISUAL="nvim" export MANSECT="3,2,1,8,5,7,4,6,3p,1p,0p" @@ -50,7 +54,7 @@ export XDG_DESKTOP_DIR="$HOME" export XDG_DOCUMENTS_DIR="$HOME/doc" export XDG_DOWNLOAD_DIR="$HOME/down" export XDG_MUSIC_DIR="$HOME/media/mus" -export XDG_PICTURES_DIR="$HOME/media/gfx" +export XDG_PICTURES_DIR="$HOME/media/img" export XDG_PUBLICSHARE_DIR="$HOME" export XDG_TEMPLATES_DIR="$HOME" export XDG_VIDEOS_DIR="$HOME/media/vid" @@ -104,13 +108,14 @@ export VAULT_2FA='2 Factor Authentication' alias irssi='irssi --config="$XDG_CONFIG_HOME/irssi/config" --home="$XDG_DATA_HOME/irssi"' alias ..='cd ..' -alias d='git --git-dir="$REPODIR/Mango0x45/dotfiles.git" --work-tree="$HOME"' +alias d='git --git-dir="$REPODIR/@me/dotfiles.git" --work-tree="$HOME"' alias g=git alias grep='grep --color=auto' alias la='ls --color=auto -Av --group-directories-first' alias ll='ls --color=auto -AGhlv --group-directories-first --time-style="+%d %b %Y %T"' alias ls='ls --color=auto -v --group-directories-first' alias sl='sl -ac5' +alias dv=doasedit alias sv=sudoedit alias v="$VISUAL" alias z='2>/dev/null zathura --fork "$@" 2>/dev/null' @@ -126,44 +131,12 @@ __ps1_newline() { PS1="\$(__ps1_newline)"'\[\e[96;1m\]\u \[\e[39m\]\W \[\e[96m\]〉\[\e[0m\]' -eval "$(fzf --bash)" -eval "$(eww shell-completions --shell bash)" - -# Autocompletions for auto-cpufreq. Inlined from the generated output -# for performance reasons. -_auto_cpufreq_completion() { - local IFS=$'\n' - local response - - response=$( - env \ - COMP_WORDS="${COMP_WORDS[*]}" \ - COMP_CWORD=$COMP_CWORD \ - _AUTO_CPUFREQ_COMPLETE=bash_complete \ - $1 - ) - - for completion in $response; do - IFS=',' read type value <<<"$completion" - - case $type in - dir) - COMPREPLY=() - compopt -o dirnames - ;; - file) - COMPREPLY=() - compopt -o default - ;; - plain) - COMPREPLY+=($value) - ;; - esac - done - - return 0 -} - -complete -o nosort -F _auto_cpufreq_completion auto-cpufreq +command -v fzf >/dev/null && eval "$(fzf --bash)" +command -v eww >/dev/null && eval "$(eww shell-completions --shell bash)" +command -v niri >/dev/null && eval "$(niri completions bash)" -# sed '1s/^/[3m‘/; $s/$/’[0m/' "$XDG_CACHE_HOME/qotd" | fold -sw 80 +if [[ -d "$NVM_DIR" ]] +then + . "$NVM_DIR/nvm.sh" + . "$NVM_DIR/bash_completion" +fi |