Add .profile
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
This commit is contained in:
parent
9547aa3ee3
commit
3aee19333c
4 changed files with 36 additions and 7 deletions
|
@ -1,5 +1,13 @@
|
|||
# If .bash_profile exists, bash doesn't read .profile
|
||||
if [[ -f $HOME/.profile ]]; then
|
||||
. $HOME/.profile
|
||||
fi
|
||||
|
||||
# If the shell is interactive and .bashrc exists, get the aliases and functions
|
||||
if [[ $- == *i* && -f $HOME/.bashrc ]]; then
|
||||
. $HOME/.bashrc
|
||||
fi
|
||||
|
||||
if [ "$(tty)" = "/dev/tty1" ]; then
|
||||
startx && exit
|
||||
fi
|
||||
|
||||
source $HOME/.bashrc
|
||||
|
|
8
.bashrc
8
.bashrc
|
@ -3,10 +3,10 @@
|
|||
# for examples
|
||||
|
||||
# If not running interactively, don't do anything
|
||||
case $- in
|
||||
*i*) ;;
|
||||
*) return;;
|
||||
esac
|
||||
#case $- in
|
||||
# *i*) ;;
|
||||
# *) return;;
|
||||
#esac
|
||||
|
||||
# don't put duplicate lines or lines starting with space in the history.
|
||||
# See bash(1) for more options
|
||||
|
|
|
@ -217,7 +217,6 @@ exec audacious
|
|||
# Assign programs to specific workspaces
|
||||
###
|
||||
assign [class="google-chrome-beta"] $workspace1
|
||||
assign [class="Thunar"] $workspace4
|
||||
assign [class="Gnome-terminal"] $workspace2
|
||||
assign [class="Atom"] $workspace3
|
||||
assign [class="Steam"] $workspace6
|
||||
|
|
22
.profile
Normal file
22
.profile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# ~/.profile: executed by the command interpreter for login shells.
|
||||
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
|
||||
# exists.
|
||||
# see /usr/share/doc/bash/examples/startup-files for examples.
|
||||
# the files are located in the bash-doc package.
|
||||
|
||||
# the default umask is set in /etc/profile; for setting the umask
|
||||
# for ssh logins, install and configure the libpam-umask package.
|
||||
#umask 022
|
||||
|
||||
# if running bash
|
||||
if [ -n "$BASH_VERSION" ]; then
|
||||
# include .bashrc if it exists
|
||||
if [ -f "$HOME/.bashrc" ]; then
|
||||
. "$HOME/.bashrc"
|
||||
fi
|
||||
fi
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d "$HOME/bin" ] ; then
|
||||
PATH="$HOME/bin:$PATH"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue