This commit is contained in:
2022-02-05 23:50:00 +05:00
parent bb290e1ea0
commit 174e0ed7e1
5 changed files with 57 additions and 3 deletions

View File

@ -0,0 +1,5 @@
#
# ~/.bash_profile
#
[[ -f ~/.bashrc ]] && . ~/.bashrc

42
config/bash/bashrc Normal file
View File

@ -0,0 +1,42 @@
#
# ~/.bashrc
#
#start i3 if not running
#check if ssh
if [ "$SSH_TTY" = "" ]
then
#check if xinit running already
STARTX=$(ps -e | grep xinit | awk '{print $4}')
if [ "$STARTX" != "xinit" ]
then
startx ~/.config/X11/xinitrc
clear
fi
fi
# MPD daemon start (if no other user instance exists)
#[ ! -s ~/.config/mpd/pid ] && mpd
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
#path
PATH=$PATH:~/.scripts
## Aliases
alias ls='ls --color=auto'
alias mv="mv -v"
alias rm="rm -v"
alias cp="cp -v"
alias ssh="kitty +kitten ssh"
alias mkdir="mkdir -pv"
#alias neofetch="neofetch --ascii_distro off"
source ~/.local/share/blesh/ble.sh
# BEGIN_KITTY_SHELL_INTEGRATION
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
# END_KITTY_SHELL_INTEGRATION