diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2023-08-23 15:56:49 +0200 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2023-08-23 15:56:49 +0200 |
| commit | effd08ba3063cde8427fc32909efa657d5a1f3bc (patch) | |
| tree | 75361076ba3f6da342a1a954a31fa4e82e516422 /.bashrc | |
| parent | fd2b64565c0030f3cd9235f3b2c75f2f7603aa97 (diff) | |
| download | dotfiles-effd08ba3063cde8427fc32909efa657d5a1f3bc.tar.gz dotfiles-effd08ba3063cde8427fc32909efa657d5a1f3bc.zip | |
Updated install script and fixed outdated config
After trying up this whole thing on a fresh VM I got into a lot of old
stuff that needed some updating (e.g. GNU Emacs' configuration which is
now handled through Doom).
Other than that, I have also added a few goodies when I'm using this on
a VM, like a proper size for the TTY.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.bashrc')
| -rw-r--r-- | .bashrc | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -24,6 +24,18 @@ source_maybe() { } ## +# If we are inside of a VM, chances are that the TTY size is borked. Let's +# resize the TTY to the actual terminal size. + +if grep -Fq "hypervisor" /proc/cpuinfo; then + if [ -x "$(command -v resize)" ]; then + eval `resize` + else + echo "Consider installing the `resize` binary if you want a proper TTY size." + fi +fi + +## # XDG: sourcing the variables on $HOME/.config/user-dirs.dirs might ease up the # configuration of other tools. @@ -109,7 +121,7 @@ export GOPATH=$HOME # The g utility. See: https://github.com/mssola/g source_maybe "$HOME/.g.sh" -source_maybe "$HOME/.gcompletion.sh" +source_maybe "$HOME/.git-prompt.sh" # Complete the `docker` command if possible. source_maybe "$HOME/.dockercompletion.sh" @@ -161,8 +173,10 @@ alias ssh="gpg-connect-agent updatestartuptty /bye >/dev/null; ssh" alias ip="ip --color" alias ipb="ip --color --brief" -# Add the binaries of Doom Emacs into my PATH. +# Add the binaries of Doom Emacs into my PATH (either on the traditional +# `~/.emacs.d` or the XDG-conformant `~/.config/emacs`). export PATH=$PATH:$HOME/.emacs.d/bin +export PATH=$PATH:$HOME/.config/emacs/bin # If we have Rust's source code, export the special `RUST_SRC_PATH`, since this # is useful for completion tools. |
