Repository navigation
Expand file tree
/
Copy pathsource_list.thinkbook
More file actions
57 lines (46 loc) · 1.75 KB
/
Copy pathsource_list.thinkbook
File metadata and controls
57 lines (46 loc) · 1.75 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#! /bin/sh
# This is a script used for executing scripts, sourcing softwares and other
# things before starting a terminal. These are not related to bash or zsh and
# thus kept in a seperate file.
export TERM=xterm-256color
# set tabstop to 4 spaces
tabs -4
# fuzzy file finder (fzf) related settings
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='find . -not \( -path "*/build/*" -prune \)\
-not \( -path "*/logs/*" -prune \)\
-not \( -path "*/\.*/*" -prune \)'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_DEFAULT_OPTS="--height 40% --layout=reverse --border"
# ROS stuff
# export ROBOT_ENV=brsu-c025-sim
# export ROBOT=youbot-brsu-4
# export ROS_DOMAIN_ID=16
# export ROS_AUTOMATIC_DISCOVERY_RANGE=LOCALHOST
# export GZ_SIM_RESOURCE_PATH=/opt/ros/jazzy/share
export ROSCONSOLE_FORMAT='[${severity}] [${time}] [${node}]: ${message}'
# use the previously chosen colcon workspace
source /opt/ros/jazzy/setup.zsh
export COLCON_WORKSPACE=$(cat ~/.config/colcon_workspace/chosen_colcon_workspace)
source $COLCON_WORKSPACE/install/setup.zsh
export COLCON_LOG_PATH=$COLCON_WORKSPACE/log
function _cabin()
{
local -a args arg
args="$(roscd cabin_nav && ls config)"
arg=("${(f)args}")
_describe 'command' arg
}
compdef _cabin cabin
compdef _cabin cabind
compdef _cabin cabingdb
if [[ ! "$PATH" == "*/home/dharmin/.local/bin*" ]]; then
PATH="${PATH:+${PATH}:}/home/steaps/.local/bin"
fi
[ -f ~/.ros/roscd.zsh ] && source ~/.ros/roscd.zsh
# ranger file browser related settings
export RANGER_LOAD_DEFAULT_RC=FALSE
VISUAL=vim; export VISUAL EDITOR=vim; export EDITOR
export BROWSER=brave-browser
# neofetch on start
neofetch --source ~/.config/neofetch/batman3