bashrc: Terminal.app improvements, aliases broken out
On the Mac terminal sessions don't seem to retain the same environment as the one that parses their .bashrc files. So, to overcome that, all aliases and PATH/variable changes are done in .profile (or files sourced by .profile). There aren't any .profiles checked in yet, but stay tuned ;-)
This commit is contained in:
parent
36ca1ab2aa
commit
b53471edbd
3 changed files with 18 additions and 7 deletions
9
.bashrc
9
.bashrc
|
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
command -v port >/dev/null &&
|
||||
command -v uname >/dev/null &&
|
||||
[ $(uname) == 'Darwin' ] && . .bashrc.mac
|
||||
[ $(uname) == 'Darwin' ] && . /opt/local/etc/bashrc.mac
|
||||
|
||||
simplefind() { find . -iname '*'"$@"'*'; }
|
||||
simpleplay() {
|
||||
|
|
@ -8,8 +10,3 @@ simpleplay() {
|
|||
| xargs -0 mpv --no-audio-display \
|
||||
;
|
||||
}
|
||||
|
||||
# Python
|
||||
alias mk-venv='python -m venv .venv'
|
||||
alias do-venv='. .venv/bin/activate'
|
||||
alias rm-venv='rm -rf .venv'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue