summaryrefslogtreecommitdiff
path: root/surltesh-echer/home/bashrc
blob: 9c2ee2d38f124b0bdd1e2c61d92d52a6fa6c813b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Commands that should be applied only for interactive shells.
[[ $- == *i* ]] || return

HISTCONTROL=ignoredups:ignorespace
HISTFILESIZE=10000
HISTSIZE=10000

shopt -s histappend
shopt -s checkwinsize
shopt -s extglob
shopt -s globstar
shopt -s checkjobs

alias ll='ls -slF'
alias lrz-vpn='sudo openconnect https://asa-cluster.lrz.de  -g AnyConnect'
alias news='newsboat'
alias pj='pijul'

if [[ ! -v BASH_COMPLETION_VERSINFO ]]; then
  . "/nix/store/9xgx98k6ggq1ay63cq57k9gw35i44b1n-bash-completion-2.11/etc/profile.d/bash_completion.sh"
fi

export GPG_TTY=`tty`
# this shouldn't be necessary, but apparently nix is broken ...
NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
PS1='\[\033[1;36m\] >>> [\j|\u@\w]\$: \[\033[00m\]'

GPG_TTY="$(tty)"
export GPG_TTY

if [[ $TERM != "dumb" && (-z $INSIDE_EMACS || $INSIDE_EMACS == "vterm") ]]; then
  eval "$(/home/stuebinm/.nix-profile/bin/starship init bash --print-full-init)"
fi