bashrc
This commit is contained in:
5
config/bash/.bash_profile
Normal file
5
config/bash/.bash_profile
Normal file
@ -0,0 +1,5 @@
|
||||
#
|
||||
# ~/.bash_profile
|
||||
#
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
42
config/bash/bashrc
Normal file
42
config/bash/bashrc
Normal 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
|
||||
|
Reference in New Issue
Block a user