From e775857e7ae43fc37ae5e206f9cfd1a432b8f971 Mon Sep 17 00:00:00 2001 From: TrudeEH Date: Thu, 9 May 2024 00:49:41 +0100 Subject: [PATCH] fix ncs by allowing bash to source the script --- dotfiles/.bashrc | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/dotfiles/.bashrc b/dotfiles/.bashrc index 758cfb65..ec75a875 100644 --- a/dotfiles/.bashrc +++ b/dotfiles/.bashrc @@ -1,27 +1,6 @@ export EDITOR="vim"; export PS1="\n[\[\e[37m\]\u\[\e[0m\]@\[\e[37;2m\]\h\[\e[0m\]] \[\e[1m\]\w \[\e[0;2m\]J:\[\e[0m\]\j\n\$ "; -# Commands that should be applied only for interactive shells. -[[ $- == *i* ]] || return - -HISTFILESIZE=100000 -HISTSIZE=10000 - -shopt -s histappend -shopt -s checkwinsize -shopt -s extglob -shopt -s globstar -shopt -s checkjobs - -alias cat='bat' -alias l='ls -alh' -alias ls='ls --color=auto' -alias grep='grep --color=auto' -alias ll='ls -lhi' -alias ta='tmux attach' -alias t='tmux' -alias v='nvim' - extract() { if [ -f $1 ]; then case $1 in @@ -100,6 +79,27 @@ color2hex(){ fi } +# Commands that should be applied only for interactive shells. +[[ $- == *i* ]] || return + +HISTFILESIZE=100000 +HISTSIZE=10000 + +shopt -s histappend +shopt -s checkwinsize +shopt -s extglob +shopt -s globstar +shopt -s checkjobs + +alias cat='bat' +alias l='ls -alh' +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias ll='ls -lhi' +alias ta='tmux attach' +alias t='tmux' +alias v='nvim' + set completion-ignore-case On export OFLAGS="--ozone-platform-hint=auto"