-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash.fedora
29 lines (22 loc) · 845 Bytes
/
bash.fedora
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# vim: set filetype=sh :
alias ls="ls --color"
source /etc/profile.d/bash_completion.sh
source ~/.poetry/env
function start-search-web {
cd ~/Work/search-web;
gnome-terminal --working-directory ~/Work/search-web -x bash --login -c "./run.sh 8080"
gnome-terminal --working-directory ~/Work/search-web -x bash --login -c "nvm use; npm run build -- --watch"
}
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
function add-smudge {
name=$1
filename=$2
find=$3
replace=$4
git config filter.$name.smudge "sed -e 's/$find/$replace/'"
git config filter.$name.clean "sed -e 's/$replace/$find/'"
touch .git/info/attributes
echo "$filename filter=$name" >> .git/info/attributes
}