From c3e9a96a44766013880ff0e9389bbccfd5b52645 Mon Sep 17 00:00:00 2001 From: Harish Karumuthil Date: Fri, 22 Sep 2023 12:00:21 +0530 Subject: [PATCH] Cleanup bashrc --- home/.bash_profile | 8 ------ home/.bashrc | 42 ++-------------------------- home/.profile | 69 ++++++++++++++++++---------------------------- 3 files changed, 29 insertions(+), 90 deletions(-) delete mode 100644 home/.bash_profile mode change 100644 => 100755 home/.profile diff --git a/home/.bash_profile b/home/.bash_profile deleted file mode 100644 index 55136b9..0000000 --- a/home/.bash_profile +++ /dev/null @@ -1,8 +0,0 @@ -# .bash_profile - -# Get the aliases and functions -if [ -f ~/.bashrc ]; then - . ~/.bashrc -fi - -# User specific environment and startup programs diff --git a/home/.bashrc b/home/.bashrc index b42d2a2..97dd72f 100644 --- a/home/.bashrc +++ b/home/.bashrc @@ -5,42 +5,6 @@ if [ -f /etc/bashrc ]; then . /etc/bashrc fi -# User specific environment -if [[ -z $HOME_BASH_RC_LOAD ]] -then - PATH="$HOME/.node_modules_mine/node_modules/.bin:$PATH"; - PATH="$HOME/.local/bin:$PATH"; - PATH="$HOME/go/bin:$PATH"; - PATH="$HOME/.linuxbrew/bin:$PATH"; - PATH="$HOME/.local/bin:$HOME/bin:$PATH" - PATH="$PATH:$HOME/.local/Apps/flutter/bin" - export PATH - - export NVM_DIR="$HOME/.nvm" - export DENO_INSTALL="/home/harish/.deno" - export PATH="$DENO_INSTALL/bin:$PATH" - export TIME_STYLE=long-iso - export TCLLIBPATH=~/.local/share/tkthemes - export ANDROID_HOME=/home/harish/.local/Apps/android-sdk - - export GTK_IM_MODULE=ibus - export XMODIFIERS=@im=ibus - export QT_IM_MODULE=ibus - unset rc - 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 - - export HOME_BASH_RC_LOAD=1 -fi - if [[ -f /usr/share/fzf/shell/key-bindings.bash ]]; then . /usr/share/fzf/shell/key-bindings.bash @@ -53,8 +17,6 @@ fi #export PS1='\e[1;36;40m[\u@\h\e[1;33;40m \W]\e[0;37;40m\$ ' PS1='\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$\[\033[00m\] ' -nvmLoad(){ - [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm - [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -} +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +export EDITOR=vim diff --git a/home/.profile b/home/.profile old mode 100644 new mode 100755 index 4f3205b..ca7454b --- a/home/.profile +++ b/home/.profile @@ -1,46 +1,31 @@ -# Sample .profile for SuSE Linux -# rewritten by Christian Steinruecken -# -# This file is read each time a login shell is started. -# All other interactive shells will only read .bashrc; this is particularly -# important for language settings, see below. -test -z "$PROFILEREAD" && . /etc/profile || true - -# Most applications support several languages for their output. -# To make use of this feature, simply uncomment one of the lines below or -# add your own one (see /usr/share/locale/locale.alias for more codes) -# This overwrites the system default set in /etc/sysconfig/language -# in the variable RC_LANG. -# -#export LANG=de_DE.UTF-8 # uncomment this line for German output -#export LANG=fr_FR.UTF-8 # uncomment this line for French output -#export LANG=es_ES.UTF-8 # uncomment this line for Spanish output - - -# Some people don't like fortune. If you uncomment the following lines, -# you will have a fortune each time you log in ;-) - -#if [ -x /usr/bin/fortune ] ; then -# echo -# /usr/bin/fortune -# echo -#fi if test -z "$USER_PROFILEREAD"; then -export PATH="$HOME/node_modules/.bin:$HOME/.local/bin:$PATH"; -export PATH+=:"$HOME/go/bin"; -export PATH="$HOME/.cargo/bin:$PATH" -export PYENV_ROOT="$HOME/.pyenv" -export PATH="$PYENV_ROOT/bin:$PATH" - - - -export INPUT_METHOD=ibus -export GTK_IM_MODULE=ibus -export XMODIFIERS=@im=ibus -export QT_IM_MODULE=ibus - -export USER_PROFILEREAD=1 - + export PYENV_ROOT="$HOME/.pyenv" + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + + PATH="$HOME/.node_modules_mine/node_modules/.bin:$PATH"; + PATH="$HOME/.local/bin:$PATH"; + PATH="$HOME/go/bin:$PATH"; + PATH="$HOME/.cargo/bin:$PATH" + PATH="$HOME/.linuxbrew/bin:$PATH"; + PATH="$HOME/.local/bin:$HOME/bin:$PATH" + PATH="$PATH:$HOME/.local/Apps/flutter/bin" + PATH="$PYENV_ROOT/bin:$PATH" + export PATH + + export DENO_INSTALL="/home/harish/.deno" + export PATH="$DENO_INSTALL/bin:$PATH" + export TIME_STYLE=long-iso + export TCLLIBPATH=$HOME/.local/share/tkthemes + export ANDROID_HOME=$HOME/.local/Apps/android-sdk + export SYSTEMD_PAGER= + + export INPUT_METHOD=ibus + export GTK_IM_MODULE=ibus + export XMODIFIERS=@im=ibus + export QT_IM_MODULE=ibus + + export USER_PROFILEREAD=1 fi