.profile

.profile not working from terminal in mac

荒凉一梦 提交于 2021-02-18 08:54:18
问题 I had a .profile file that I was reading and using aliases from in my terminal, but at some point the aliases stopped working for no clear reason (other commands were still working). Thinking to make a quick fix, I deleted (rm) and recreated my .profile file in my user directory. There are no bash_profiles or others in existence that I can see, at leasts in that directory. The new .profile did not work. I tried restarting the terminal and the computer. Now, the commands that worked in the

pyenv: failed to activate virtualenv - settings not read from .profile at login

痞子三分冷 提交于 2020-05-17 07:03:47
问题 This is a known topic, almost similar to this one. However - why am I having the pyenv settings passed in ok from .profile at login only up to the virtualenv string. export PYENV_ROOT="$HOME/.pyenv" export PATH="$PYENV_ROOT/bin:$PATH" if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" fi eval "$(pyenv virtualenv-init -)" After login, the above portion is read (pyenv is active in terminal) but not virtualenv. Manual activation of the venv produces the well-known error message.

creating an alias in ubuntu , in .profile

给你一囗甜甜゛ 提交于 2020-02-01 05:31:09
问题 I can't figure out why this simple alias isn't work. I've read online an example on creating it and don't know where I'm going wrong... I've added the following to my .profile file at the bottom: alias profile='sudo nano ~/.profile' When I type in 'profile' in the terminal it says command not found... I have a feeling this is a very very simple error I'm making. Thanks everyone! 回答1: What happens if you log out and back in? Alternatively you could just type source .profile and that should

bash script to run lftp with ftp path

点点圈 提交于 2019-12-12 03:32:32
问题 I'm trying to write a bash alias/function that takes an ftp path and runs lftp to pget the file. Given a remote path, with spaces encoded as %20 like: sftp://ftp.example.com/Some%20Folder/BigFile.mov I have this snippet to clean up the %20 and server part of the URL: echo $1 | sed 's/%20/ /g' | sed 's/sftp:\/\/ftp.example.com//g'; which gives me /Some Folder/BigFile.mov Now I need to run this through lftp like this: lftp sftp://ftp.example.com -u user,pass -e "pget -cn10 '/Some Folder/BigFile

creating an alias in ubuntu , in .profile

烈酒焚心 提交于 2019-12-04 15:07:50
I can't figure out why this simple alias isn't work. I've read online an example on creating it and don't know where I'm going wrong... I've added the following to my .profile file at the bottom: alias profile='sudo nano ~/.profile' When I type in 'profile' in the terminal it says command not found... I have a feeling this is a very very simple error I'm making. Thanks everyone! What happens if you log out and back in? Alternatively you could just type source .profile and that should activate your alias. Many people using bash set their aliases up in the .bashrc file. Arvind to add alias