pavel@tessa:~$ echo $PATH/home/pavel/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/gamespavel@tessa:~$ cat .profile # ~/.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 bashif [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fifi# set PATH so it includes user's private bin if it existsif [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH"fi# set PATH so it includes user's private bin if it existsif [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH"fipavel@tessa:~$ if [ -d "$HOME/.local/bin" ] ; then echo existuje; fiexistuje
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
já myslel, že .profile se používá bez ohledu na shell, ale podle toho popisu to smysl dává. večer to prubnu
Kód: [Vybrat]# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_loginMozna toto?
pavel@tessa:~$ ls .bash*.bash_history .bash_logout .bashrc
Btw - az dostanes ten bin do cesty, tak se take ujisti, ze muzes spoustet binarky z /home. Dost casto byva mounovany tak, ze spoustet nic nejde (coz dava smysl, pokud neni napr. dotycny vyvojar...).
# set PATH so it includes user's private bin if it existsif [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH"fi
$ exec bash --login