Compare commits
5 Commits
3d80f86963
...
fd6d038df7
Author | SHA1 | Date | |
---|---|---|---|
fd6d038df7 | |||
d84b26ed43 | |||
f64180d52f | |||
4b929f4b0a | |||
60b3b10426 |
@ -6,6 +6,8 @@ ZSHFOLDER=$HOME/.config/zsh
|
||||
CONFIG="$HOME/.config"
|
||||
OHMYZSH="$HOME/.oh-my-zsh"
|
||||
|
||||
mkdir -p $ZSHFOLDER $CONFIG $OHMYZSH
|
||||
|
||||
# Colours
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;0;32m'
|
||||
@ -68,11 +70,13 @@ function command_start() {
|
||||
}
|
||||
|
||||
function command_exists() {
|
||||
if which "$1" > /dev/null 2>&1; then
|
||||
if command -v "$1" > /dev/null 2>&1; then
|
||||
timestamp "Command $1 has been found"
|
||||
else
|
||||
err "Command $1 has been NOT found"
|
||||
exit 0
|
||||
|
||||
# Return false
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
|
8
.zshrc
8
.zshrc
@ -60,7 +60,7 @@ export CCACHE_DIR="/usr/ccache"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
export LANG=en_US.UTF-8
|
||||
export LC_ALL=en_US.UTF-8
|
||||
export BROWSER=/home/yorune/.local/bin/browser-x
|
||||
export BROWSER=$HOME/.local/bin/browser-x
|
||||
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse'
|
||||
export EIX_LIMIT_COMPACT=0
|
||||
export TERMINAL="st"
|
||||
@ -80,7 +80,7 @@ export PATH=$HOME/node_modules/.bin:$PATH
|
||||
export GOPATH=$HOME/golang
|
||||
export PATH=$PATH:$HOME/.gem/ruby/2.6.0/bin
|
||||
export PATH=$PATH:$HOME/.cargo/bin
|
||||
[ -d $HOME/repo/fortigate/bin ] && export PATH=$HOME/repo/fortigate/bin:$PATH
|
||||
[ -d $HOME/git/fortigate/bin ] && export PATH=$HOME/git/fortigate/bin:$PATH
|
||||
|
||||
# History
|
||||
export HISTTIMEFORMAT="%F %T "
|
||||
@ -151,6 +151,9 @@ if [[ "$(uname)" == "Darwin" ]]; then
|
||||
alias pip3='/opt/homebrew/bin/pip$PYTHONVERSION'
|
||||
alias python='/opt/homebrew/bin/python$PYTHONVERSION'
|
||||
alias pip='/opt/homebrew/bin/pip$PYTHONVERSION'
|
||||
alias sed='gsed'
|
||||
alias zcat='gzcat'
|
||||
alias date='gdate'
|
||||
|
||||
alias lsblk="diskutil list"
|
||||
alias Update="~/.local/bin/Update-pkg; brew update; brew upgrade"
|
||||
@ -173,6 +176,7 @@ if [[ "$(uname)" == "Darwin" ]]; then
|
||||
sort |
|
||||
tail -n1)
|
||||
export PATH=$PATH:/opt/homebrew/Cellar/tfenv/$TFENVVERSION/versions/$TFVERSION/
|
||||
unset BROWSER
|
||||
fi
|
||||
|
||||
# Setting the right editor
|
||||
|
Loading…
Reference in New Issue
Block a user