Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
rcfiles
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nimrod
rcfiles
Commits
62e2d4a2
Commit
62e2d4a2
authored
9 years ago
by
nimrod
Browse files
Options
Downloads
Patches
Plain Diff
Some cleanup of bashrc, load OSX variables only on OSX.
parent
2bf2676e
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.bashrc
+13
-24
13 additions, 24 deletions
.bashrc
with
13 additions
and
24 deletions
.bashrc
+
13
−
24
View file @
62e2d4a2
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
# If not running interactively, don't do anything
[
-z
"
$PS1
"
]
&&
return
[
-z
"
$PS1
"
]
&&
return
...
@@ -65,15 +61,6 @@ xterm*|rxvt*)
...
@@ -65,15 +61,6 @@ xterm*|rxvt*)
;;
;;
esac
esac
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
#if [ -f ~/.bash_aliases ]; then
# . ~/.bash_aliases
#fi
# enable color support of ls and also add handy aliases
# enable color support of ls and also add handy aliases
if
[
-x
/usr/bin/dircolors
]
;
then
if
[
-x
/usr/bin/dircolors
]
;
then
eval
"
`
dircolors
-b
`
"
eval
"
`
dircolors
-b
`
"
...
@@ -86,11 +73,6 @@ if [ -x /usr/bin/dircolors ]; then
...
@@ -86,11 +73,6 @@ if [ -x /usr/bin/dircolors ]; then
#alias egrep='egrep --color=auto'
#alias egrep='egrep --color=auto'
fi
fi
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
# enable programmable completion features (you don't need to enable
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
# sources /etc/bash.bashrc).
...
@@ -103,6 +85,9 @@ then
...
@@ -103,6 +85,9 @@ then
.
/usr/local/bin/virtualenvwrapper.sh
.
/usr/local/bin/virtualenvwrapper.sh
fi
fi
alias
ll
=
'ls -l'
alias
la
=
'ls -A'
alias
l
=
'ls -CF'
alias
gcc
=
'gcc --std=c99 -Wall'
alias
gcc
=
'gcc --std=c99 -Wall'
alias
dpkglog
=
'cat /var/log/dpkg.log | grep -v status | grep -v trigproc | grep -v configure'
alias
dpkglog
=
'cat /var/log/dpkg.log | grep -v status | grep -v trigproc | grep -v configure'
alias
deborphan
=
'deborphan -a --no-show-section'
alias
deborphan
=
'deborphan -a --no-show-section'
...
@@ -118,15 +103,19 @@ alias backup='cat Documents/Backup\ list.yml | \
...
@@ -118,15 +103,19 @@ alias backup='cat Documents/Backup\ list.yml | \
Documents/yaml2duplicity_include_list.py | duplicity --exclude $HOME \
Documents/yaml2duplicity_include_list.py | duplicity --exclude $HOME \
--include-filelist-stdin $HOME file:///media/nimrod/backup'
--include-filelist-stdin $HOME file:///media/nimrod/backup'
alias
gen_ssh_config
=
'cat $HOME/.ssh/config.d/* > $HOME/.ssh/config'
alias
gen_ssh_config
=
'cat $HOME/.ssh/config.d/* > $HOME/.ssh/config'
export
HOMEBREW_CASK_OPTS
=
"--appdir=/Applications"
#put this in our .zshrc | .bash_profile
if
[
-f
$(
brew
--prefix
)
/etc/bash_completion
]
;
then
.
$(
brew
--prefix
)
/etc/bash_completion
fi
new_cgit_repo
()
new_cgit_repo
()
{
{
ssh cgit
"git init --bare /srv/git/
$1
"
ssh cgit
"git init --bare /srv/git/
$1
"
git clone ssh://cgit/srv/git/
$1
git clone ssh://cgit/srv/git/
$1
}
}
# Because OSX is the opposite of useful
# Because OSX is the opposite of useful
if
[
"
$(
uname
)
"
==
"Darwin"
]
then
if
[
-f
$(
brew
--prefix
)
/etc/bash_completion
]
;
then
.
$(
brew
--prefix
)
/etc/bash_completion
fi
export
HOMEBREW_CASK_OPTS
=
"--appdir=/Applications"
#put this in our .zshrc | .bash_profile
export
LC_ALL
=
en_US.UTF-8
export
LC_ALL
=
en_US.UTF-8
export
LANG
=
en_US.UTF-8
export
LANG
=
en_US.UTF-8
export
PATH
=
"/usr/local/sbin:
$PATH
"
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment